Projet

Général

Profil

« Précédent | Suivant » 

Révision cb0e91e4

Ajouté par Serghei Mihai il y a environ 9 ans

distinct url for ozwillo portal

Voir les différences:

README.rst
47 47
The configuration variable ``ckanext.ozwillo_theme.plugin.ozwillo_url`` must be
48 48
set(for example to https://ozwillo-preprod.eu)
49 49

  
50
The configuration variable ``ckanext.ozwillo_theme.plugin.ozwillo_portal_url``
51
must be set(for example to https://portal.ozwillo-preprod.eu)
50 52

  
51 53
------------
52 54
Installation
ckanext/ozwillo_theme/plugin.py
11 11
    def update_config(self, config_):
12 12
        set_global('ckan.ozwillo_url',
13 13
                   pconfig.get('%s.ozwillo_url' % __name__))
14
        set_global('ckan.ozwillo_portal_url',
15
                   pconfig.get('%s.ozwillo_portal_url' % __name__))
14 16

  
15 17
        toolkit.add_template_directory(config_, 'templates')
16 18
        toolkit.add_public_directory(config_, 'public')
ckanext/ozwillo_theme/templates/header.html
21 21
		<div class="t3-navbar navbar-collapse collapse">
22 22
					<ul class="nav navbar-nav">
23 23
			<li class="item-107 current">				<a class="logo" href="{{ g.ozwillo_url }}/{{current_lang}}"><img src="/img/logo-100.png" alt="{% trans %}Home{% endtrans %}"></a>
24
				</li><li class="item-108">				<a class="nav-apps" href="{{ g.ozwillo_url }}/{{current_lang}}/store?ui_locales={{current_lang}}">{% trans %}Catalog{% endtrans %}</a>
24
				</li><li class="item-108">				<a class="nav-apps" href="{{ g.ozwillo_portal_url }}/{{current_lang}}/store?ui_locales={{current_lang}}">{% trans %}Catalog{% endtrans %}</a>
25 25
				</li>
26 26
<li class="item-119 deeper dropdown parent">
27 27
  <a class="dropdown-toggle nav-data" href="#" data-toggle="dropdown">{% trans %}Data{% endtrans %}<b class="caret"></b></a>
......
45 45
  {% if c.userobj %}
46 46
  <a class="btn navbar-btn" href="{{ h.url_for('/user/slo') }}">{% trans %}Log out{% endtrans %}</a>
47 47
  {% else %}
48
  <a class="btn navbar-btn" href="{{ g.ozwillo_url }}/{{current_lang}}/my">{% trans %}Log in{% endtrans %}</a>
48
  <a class="btn navbar-btn" href="{{ g.ozwillo_portal_url }}/{{current_lang}}/my">{% trans %}Log in{% endtrans %}</a>
49 49
  {% endif %}
50 50
  </li>
51 51
<li class="item-112 deeper dropdown parent"><a class="dropdown-toggle" href="/en/oz/discover" data-toggle="dropdown">{% trans %}Discover{% endtrans %}<b class="caret"></b></a>

Formats disponibles : Unified diff