From 2e8998ac25b9c7ac4e488e9c33ab3e4eab3508ca Mon Sep 17 00:00:00 2001 From: Matheus Figueiredo Date: Fri, 23 Aug 2013 15:35:25 -0300 Subject: [PATCH] Adding CSS to user profile --- src/accounts/templates/accounts/user-profile.html | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------- src/colab/static/css/screen.css | 11 +++++++++++ 2 files changed, 64 insertions(+), 53 deletions(-) diff --git a/src/accounts/templates/accounts/user-profile.html b/src/accounts/templates/accounts/user-profile.html index 97d66d4..f27671a 100644 --- a/src/accounts/templates/accounts/user-profile.html +++ b/src/accounts/templates/accounts/user-profile.html @@ -9,7 +9,7 @@ {% block main-content %} {% if not user_profile %} - {% trans "User not registered." %} {% trans "Is that you?" %} + {% trans "User not registered." %} {% trans "Is that you?" %} {% trans "Click here and sign up." %} @@ -24,68 +24,69 @@ {% endif %} -
-

{{ email_address.get_full_name }}

+
+

{{ email_address.get_full_name }}

+
-
- +
 
+ +
+
+
-
-
- {% csrf_token %} - -

{% trans "Personal Information" %}

-
    - -
  • - {% render_form_field form.institution user_profile.institution %} -
  • -
  • - {% render_form_field form.role user_profile.role %} -
  • -
- -
- -

{% trans "Other informations" %}

-
    -
  • - {% render_form_field form.twitter user_profile.twitter %} -
  • -
  • - {% render_form_field form.facebook user_profile.facebook %} -
  • -
  • - {% render_form_field form.google_talk user_profile.google_talk %} -
  • -
  • - {% render_form_field form.webpage user_profile.webpage %} -
  • -
- -
- {% if editable %} - - - - {% endif %} -
+
+ {% csrf_token %} + +
+

{% trans "Personal Information" %}

+
    +
  • + {% render_form_field form.institution user_profile.institution %} +
  • +
  • + {% render_form_field form.role user_profile.role %} +
  • +
+
+ +
+

{% trans "Other informations" %}

+
    +
  • + {% render_form_field form.twitter user_profile.twitter %} +
  • +
  • + {% render_form_field form.facebook user_profile.facebook %} +
  • +
  • + {% render_form_field form.google_talk user_profile.google_talk %} +
  • +
  • + {% render_form_field form.webpage user_profile.webpage %} +
  • +
+ {% if editable %} + + + + {% endif %} +
+ {% if type_count %}
-

{% trans "Collaborations by Area" %}

-
+

{% trans "Collaborations by Area" %}

{% endif %}
+
-
-
+
+

{% trans "Latest posted" %}

    {% for doc in emails %} @@ -96,9 +97,9 @@
-
+

{% trans "Community inside participations" %}

-
    +
      {% for doc in docs %} {% include "message-preview.html" %} {% empty %} @@ -106,6 +107,5 @@ {% endfor %}
-
{% endblock %} diff --git a/src/colab/static/css/screen.css b/src/colab/static/css/screen.css index abb1fc6..3615385 100644 --- a/src/colab/static/css/screen.css +++ b/src/colab/static/css/screen.css @@ -142,6 +142,10 @@ fieldset>legend { margin: 10px 0; } +ul.indent{ + padding-left: 1.5em; +} + #avatar { background-color: #FFF; padding: 9px 12px; @@ -149,6 +153,12 @@ fieldset>legend { height: 50px; } +#profile-img{ + border: 1px solid #DDDDDD; + width: 100px; + height: 100px; +} + .blog-post-item .post-meta { margin-bottom: 2em; } @@ -257,3 +267,4 @@ form.sendXMPPMessage textarea { .chat-content, .chatroom .participants{ border: none; } +/* End of Converse JS*/ -- libgit2 0.21.2