Skip to content
Snippets Groups Projects
Commit 6c5e46fa authored by Fredrik Jonsson's avatar Fredrik Jonsson
Browse files

Link formatting, dropdown z-index and date format.

parent d39bd2e4
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,9 @@
{% for activity in latest_notifications %}
<p class="notifications__item">
<strong>{{ activity.source_content_type.name|source_type }} </strong>
<a href="{{ activity.source.get_absolute_url }}">{{ activity.source.title|capfirst|truncatechars:15 }}</a>
: {{ activity.user.get_full_name }} {% ifequal activity.type 'comment' %}{% trans "made a comment" %}{% else %} {{ activity|display_for:request.user }}
{% if activity.related_object %}<a href="{{ activity.related_object.get_absolute_url }}">{{ activity.related_object|model_verbose_name }}</a>{% endif %}{% endifequal %}
<a href="{{ activity.source.get_absolute_url }}{% ifequal activity.type 'comment' %}#communications{% endifequal %}">{{ activity.source.title|capfirst|truncatechars:15 }}</a>
: {{ activity.user.get_full_name }} {% ifequal activity.type 'comment' %}{% trans "made a comment" %}{% else %} {{ activity|display_for:request.user }}{% endifequal %}
{% if activity.related_object %}<a href="{{ activity.related_object.get_absolute_url }}">{{ activity.related_object|model_verbose_name }}</a>{% endif %}
</p>
{% endfor %}
<p class="notifications__more"><a href="{% url "activity:notifications" %}">Show All</a></p>
......
......@@ -31,14 +31,14 @@
<div class="tabs__content" id="tab-1">
{% for activity in object_list %}
{% if activity.type == 'comment' %}
<div class="feed__item feed__item--comment">
<div class="feed__item feed__item--{{ activity.type }}">
<div class="feed__pre-content">
<p class="feed__label feed__label--{{ activity.source_content_type.name|source_type|lower }}">{{ activity.source_content_type.name|source_type }}</p>
</div>
<div class="feed__content js-feed-content">
<div class="feed__meta js-feed-meta">
<p class="feed__meta-item"><a href="{{ activity.source.get_absolute_url }}">{{ activity.source.title|capfirst }}</a>
: {{ activity.user }} made a comment – {{ activity.timestamp|date:"SHORT_DATETIME_FORMAT" }}</p>
<p class="feed__meta-item"><a href="{{ activity.source.get_absolute_url }}#communications">{{ activity.source.title|capfirst }}</a>
: {{ activity.user.get_full_name }} {% trans "made a comment" %} – {{ activity.timestamp|date:"SHORT_DATE_FORMAT" }}</p>
</div>
</div>
</div>
......@@ -49,15 +49,14 @@
<div class="tabs__content" id="tab-2">
{% for activity in object_list %}
{% if activity.type == 'action' %}
<div class="feed__item feed__item--action">
<div class="feed__item feed__item--{{ activity.type }}">
<div class="feed__pre-content">
<p class="feed__label feed__label--{{ activity.source_content_type.name|source_type|lower }}">{{ activity.source_content_type.name|source_type }}</p>
</div>
<div class="feed__content js-feed-content">
<div class="feed__meta js-feed-meta">
<p class="feed__meta-item"><a href="{{ activity.source.get_absolute_url }}">{{ activity.source.title|capfirst }}</a>
: {{ activity|display_for:request.user }} {% if activity.related_object %}<a href="{{ activity.related_object.get_absolute_url }}">{{ activity.related_object|model_verbose_name }}</a>{% endif %}
– {{ activity.timestamp|date:"SHORT_DATETIME_FORMAT" }}</p>
: {{ activity.user.get_full_name }} – {{ activity.timestamp|date:"SHORT_DATE_FORMAT" }} – {{ activity|display_for:request.user }} {% if activity.related_object %}<a href="{{ activity.related_object.get_absolute_url }}" class="feed__related-item">{{ activity.related_object|model_verbose_name }} <svg><use xlink:href="#arrow-head-pixels--solid"></use></svg></a>{% endif %}</p>
</div>
</div>
</div>
......
......@@ -2,6 +2,7 @@
&--dropdown {
position: relative;
display: inline-block;
z-index: 200;
}
&__bell {
......
......@@ -160,6 +160,8 @@
}
&__related-item {
white-space: nowrap;
svg {
width: 10px;
height: 14px;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment