diff options
author | Filipp Lepalaan <filipp@mac.com> | 2016-03-21 19:14:37 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2016-03-21 19:14:37 +0200 |
commit | 1b6e5ee722f76f594e3d95dfa8d77ac2b9f2173a (patch) | |
tree | 61dd9498cac2b20501bf96f54a95a89d714d4449 /servo/templates | |
parent | f30d6d73513a5535cae4d97ee2cc85f01660750c (diff) | |
download | Servo-1b6e5ee722f76f594e3d95dfa8d77ac2b9f2173a.tar.gz Servo-1b6e5ee722f76f594e3d95dfa8d77ac2b9f2173a.tar.bz2 Servo-1b6e5ee722f76f594e3d95dfa8d77ac2b9f2173a.zip |
Adding GSX articles
Diffstat (limited to 'servo/templates')
-rwxr-xr-x | servo/templates/notes/list_notes.html | 5 | ||||
-rw-r--r-- | servo/templates/notes/view_article.html | 33 |
2 files changed, 36 insertions, 2 deletions
diff --git a/servo/templates/notes/list_notes.html b/servo/templates/notes/list_notes.html index fdbc853..30fdb3d 100755 --- a/servo/templates/notes/list_notes.html +++ b/servo/templates/notes/list_notes.html @@ -35,6 +35,7 @@ <ul class="nav nav-list"> <li class="nav-header">{% trans "Messages" %}</li> <li class="{% active request "inbox" %}"><a href="{% url 'notes-list_notes' kind="inbox" %}">{% trans "Inbox" %} <span class="badge pull-right">{{ inbox_count|safe }}</span></a></li> + <li class="{% active request "articles" %}"><a href="{% url 'notes-list_notes' kind="articles" %}">{% trans "GSX" %}</a></li> <li class="{% active request "flagged" %}"><a href="{% url 'notes-list_notes' kind="flagged" %}">{% trans "Flagged" %}</a></li> <li class="{% active request "sent" %}"><a href="{% url 'notes-list_notes' kind="sent" %}">{% trans "Sent" %}</a></li> <!--<li class="{% active request "escalations" %}"><a href="{% url 'notes-list_notes' kind="escalations" %}">{% trans "Escalations" %}</a></li>//--> @@ -48,9 +49,9 @@ {% for note in notes %} <li class="{% active request 'notes' kind note.pk 'view' %}"> <a href="{% url 'notes-view_note' kind note.pk %}"> - <strong>{{ note.sender }}</strong><span class="pull-right">{{ note.created_at|date:"SHORT_DATE_FORMAT" }}</span> + <strong>{{ note.get_sender }}</strong><span class="pull-right">{{ note.get_creation_date|date:"SHORT_DATE_FORMAT" }}</span> <br/> - <small>{{ note.body|truncatechars:30 }}</small> + <small>{{ note.get_body|truncatechars:30 }}</small> </a> </li> {% empty %} diff --git a/servo/templates/notes/view_article.html b/servo/templates/notes/view_article.html new file mode 100644 index 0000000..99fd486 --- /dev/null +++ b/servo/templates/notes/view_article.html @@ -0,0 +1,33 @@ +{% extends "notes/list_notes.html" %} +{% load servo_tags %} +{% load i18n %} + +{% block note_buttons %} + <div class="btn-group"> + <a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> + <i class="icon-flag"></i> <span class="caret"></span> + </a> + <ul class="dropdown-menu"> + <li><a href="{% url 'notes-toggle_flag' note.pk 'read' %}" class="nofollow">{{ note.get_read_title }}</a></li> + <li><a href="{% url 'notes-toggle_flag' note.pk 'flagged' %}" class="nofollow">{{ note.get_flagged_title }}</a></li> + </ul> + </div> +{% endblock note_buttons %} + +{% block view_message %} + <div class="message-header"> + <p>{% trans "From" %}: {{ note.get_sender }}</p> + <p>{% trans "Priority" %}: {{ note.priority }}</p> + <p>{% trans "Created" %}: {{ note.date_created }}</p> + <p>{% trans "Subject" %}: {{ note.get_title }}</p> + </div> + <hr/> + {{ note.summary|markdown }} + {{ note.content|markdown }} + <div class="form-actions"> + <div class="pull-right"> + <a href="#" class="btn btn-default">{% trans "Reload" %}</a> + <a href="#" class="btn btn-default">{% trans "Acknowledge" %}</a> + </div> + </div> +{% endblock view_message %} |