From 5559e5f2cd2a722e13776a5cfb36bcaebf9a8507 Mon Sep 17 00:00:00 2001 From: Carlos Oliveira Date: Thu, 19 Nov 2015 16:07:57 -0200 Subject: [PATCH] Renamed from groups to 'listas de discussão' --- src/colab-spb-theme-plugin/colab_spb_theme/templates/accounts/user_detail.html | 164 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 164 insertions(+), 0 deletions(-) create mode 100644 src/colab-spb-theme-plugin/colab_spb_theme/templates/accounts/user_detail.html diff --git a/src/colab-spb-theme-plugin/colab_spb_theme/templates/accounts/user_detail.html b/src/colab-spb-theme-plugin/colab_spb_theme/templates/accounts/user_detail.html new file mode 100644 index 0000000..25b3da7 --- /dev/null +++ b/src/colab-spb-theme-plugin/colab_spb_theme/templates/accounts/user_detail.html @@ -0,0 +1,164 @@ +{% extends "base.html" %} + +{% load i18n gravatar %} + +{% block title %}Perfil{% endblock %} + +{% block head_js %} + {% trans "Messages" as group_collabs %} + {% trans "Contributions" as type_collabs %} + + {% include "doughnut-chart.html" with chart_data=type_count chart_canvas="collabs" name=type_collabs %} + {% include "doughnut-chart.html" with chart_data=list_activity chart_canvas="collabs2" name=group_collabs %} +{% endblock %} + +{% block main-content %} + +
+
+
+ {% gravatar user_.email 200 %} +
+ +

+ {{ user_.get_full_name }} + {{ user_.username }} +

+ + {% if request.user == user_ or request.user.is_superuser %} +   {% trans "edit profile"|title %} +   Inscrições nas listas de discussão + {% endif %} + + {% if request.user.is_active %} + {% if user_.bio %} +
+
    +
  • + {% trans 'Bio' %} +
  • +
  • {{ user_.bio }}
  • +
+ {% endif %} + {% endif %} + +
+ {% if request.user.is_active %} + +
+ {% endif %} + +
    + {% if user_.institution or user_.role %} +
  • + + {{ user_.role }} + {% if user_.institution and user_.role %}-{% endif %} + {{ user_.institution }} +
  • + {% endif %} + {% if request.user.is_active %} + {% if SOCIAL_NETWORK_ENABLED %} +
  • + {% if user_.twitter %} + {{ user_.twitter }} + {% endif %} + {% if user_.facebook %} + {{ user_.facebook }} + {% endif %} +
  • + + {% if user_.google_talk %} +
  • {{ user_.google_talk }}
  • + {% endif %} + + {% if user_.github %} +
  • {{ user_.github }}
  • + {% endif %} + + {% if user_.webpage %} +
  • {{ user_.webpage }}
  • + {% endif %} + {% endif %} + {% endif %} +
+ {% if user_.mailinglists %} + Listas de discussão + {% for list in user_.mailinglists %} + {{ list }} + {% endfor %} + {% endif %} + +
+ +
+ +
+
+
+

{% trans "Collaborations by Type" %}

+
+
+
+
+ +

+
+
+
+
+ + +
+
+
+

Participação por lista de discussão

+
+
+
+ +

+
+
+
+
+ +
+ +
+ +
+

{% trans "Latest posted" %}

+
    + {% for doc in emails %} + {% include "message-preview.html" with result=doc %} + {% empty %} +
  • {% trans "There are no posts by this user so far." %}
  • + {% endfor %} +
+ + {% trans "View more posts..." %} + +
 
+
+ +
+

{% trans "Latest contributions" %}

+
    + {% for result in results %} + {% include "message-preview.html" %} + {% empty %} +
  • {% trans "No contributions of this user so far." %}
  • + {% endfor %} +
+ + {% trans "View more contributions..." %} + +
 
+
+ +
+ +{% endblock %} -- libgit2 0.21.2