diff --git a/wger/groups/templates/group/list.html b/wger/groups/templates/group/list.html index cc381d0c4..382278611 100644 --- a/wger/groups/templates/group/list.html +++ b/wger/groups/templates/group/list.html @@ -6,51 +6,49 @@ {% block content %} -
+
+ {% endblock %} diff --git a/wger/groups/templates/group/view.html b/wger/groups/templates/group/view.html index aaa56b9f8..e530f9923 100644 --- a/wger/groups/templates/group/view.html +++ b/wger/groups/templates/group/view.html @@ -26,43 +26,44 @@ {# Render the activity stream #} {% for event in last_activity %} -
-
-

- {# Verb #} - +

+
+

+ + {# Time #} + {{ event.timestamp|timesince }} + + {# Verb #} + {% if event.verb == 'added' %} + + {% elif event.verb == 'created' %} + + {% elif event.verb == 'edited' %} + + {% elif event.verb == 'left' %} + + {% elif event.verb == 'joined' %} + + {% elif event.verb == 'promoted' %} + + {% endif %} +

+ + {# Actor #} +

+ {{ event.actor|format_username }} +

{# Action object #} {% if event.action_object %} +

{% if event.action_object.get_absolute_url %} {{ event.action_object }} {% else %} {{ event.action_object }} {% endif %} - {% endif %} - - {# Time #} - {{ event.timestamp|timesince }}

- - {# Actor #} -

- {{ event.actor|format_username }} -

+ {% endif %}
@@ -77,53 +78,38 @@ {% block sidebar %} {% if object.image %} - +
{% endif %} {% if object.description %} -

{% trans "Description" %}

{{ object.description }}

{% endif %} - {% if group_dropdown %} -
- - -
- {% endif %} -

{% trans "Members" %}

+ +

{% trans "Members" %}

+ + {% endif %} {% empty %} @@ -134,50 +120,35 @@ {% if user in object.get_admins_list and object.application_set.count %} -

{% trans "Applicants" %}

+

{% trans "Applicants" %}

{% endif %} -
- - -
-

{% trans "Workouts" %}

+

{% trans "Workouts" %}

{% for workout in object.workout_set.all %} @@ -187,5 +158,23 @@
{% trans "Nothing found" %}
{% endfor %}
+ {% trans 'Add workout' %} {% endblock %} + + +{% block options %} +{% if group_dropdown %} + + {% endif %} +{% endblock %} diff --git a/wger/groups/templates/group/view_application.html b/wger/groups/templates/group/view_application.html index 4540e9801..686e910a4 100644 --- a/wger/groups/templates/group/view_application.html +++ b/wger/groups/templates/group/view_application.html @@ -43,12 +43,11 @@ {# #} {% block sidebar %} {% if object.image %} - +
{% endif %} {% if object.description %} -

{% trans "Description" %}

{{ object.description }}

{% endif %}