Projet

Général

Profil

0001-display-extra-links-in-panel-13963.patch

Serghei Mihai, 14 novembre 2016 14:04

Télécharger (2,42 ko)

Voir les différences:

Subject: [PATCH] display extra links in panel (#13963)

 mandayejs/mandaye/static/mandaye.css                 | 2 +-
 mandayejs/mandaye/templates/mandaye/extra_links.html | 7 +++++++
 mandayejs/mandaye/templates/mandaye/panel.html       | 3 +++
 3 files changed, 11 insertions(+), 1 deletion(-)
 create mode 100644 mandayejs/mandaye/templates/mandaye/extra_links.html
mandayejs/mandaye/static/mandaye.css
33 33
    margin-right: 15px;
34 34
}
35 35

  
36
#mandaye-logon-url {
36
#mandaye-logon-url, #mandaye-extra-links {
37 37
    float: right;
38 38
    margin-right: 10px;
39 39
}
mandayejs/mandaye/templates/mandaye/extra_links.html
1
{% if extra_links %}
2
<div id="mandaye-extra-links">
3
  {% for link in extra_links %}
4
  <div><a href="{{ link.url }}">{{ link.title }}</a></div>
5
  {% endfor %}
6
</div>
7
{% endif %}
mandayejs/mandaye/templates/mandaye/panel.html
22 22
        <img src="{% static 'images/logo.png' %}" alt="logo.png">
23 23
    </a>
24 24
</div>
25

  
25 26
{% if user.is_authenticated %}
26 27
<div id="mandaye-username"><a href="{{idp_url}}/accounts">{{ user.get_full_name }}</a></div>
27 28
    <div id="mandaye-advances"><a href="{{wcs_url}}">{% trans 'advances' %}</a></div>
......
31 32
    {% else %}
32 33
        <div id="mandaye-association-url"><a href="{% url 'associate' %}">{% trans 'associate' %}</a></div>
33 34
    {% endif %}
35
    {% include "mandaye/extra_links.html" %}
34 36
{% else %}
35 37
    <div id="mandaye-advances"><a href="{{wcs_url}}">{% trans 'advances' %}</a></div>
36 38
    <div id="mandaye-logon-url"><a href="{% url 'mellon_login' %}">{% trans 'login' %}</a></div>
37 39
    <div id="mandaye-association-url"><a href="{% url 'associate' %}">{% trans 'associate' %}</a></div>
40
    {% include "mandaye/extra_links.html" %}
38 41
{% endif %}
39 42
</div>
40
-