Browse Source

Move contributions graph to the bottom of the user page so it doesn't distract from other more useful panels.

Ralph Bean 8 years ago
parent
commit
cd6a75fbf4
2 changed files with 13 additions and 12 deletions
  1. 1 1
      pagure/static/pagure.css
  2. 12 11
      pagure/templates/user_info.html

+ 1 - 1
pagure/static/pagure.css

@@ -179,7 +179,7 @@ header h1 span {
 }
 
 #user_graph {
-    min-height: 400px;
+    min-height: 150px;
     background-image: url('images/spinner.gif');
     background-position: center;
     background-repeat: no-repeat;

+ 12 - 11
pagure/templates/user_info.html

@@ -27,17 +27,6 @@
       Joined {{ user.created | humanize }}
     </p>
 
-    {% if config.get('DATAGREPPER_URL') %}
-    <section class="project_list" id="user_graph">
-        <header>
-            <h2>Contributions</h2>
-        </header>
-        <a href="{{config.get('DATAGREPPER_URL')}}/raw?category={{config.get('DATAGREPPER_CATEGORY', 'pagure')}}&user={{username}}" target="_blank">
-          <img src="{{config.get('DATAGREPPER_URL')}}/charts/line?category={{config.get('DATAGREPPER_CATEGORY', 'pagure')}}&user={{username}}&split_on=users&delta=31536000&N=12&title=&width=600&height=200&style=light&fill=True&interpolation=cubic" alt="User activity graph"/>
-        </a>
-    </section>
-    {% endif %}
-
     {{ render_repos(
             repos, total_page_repos, 'repopage', repopage,
             'Projects', repos_length, 'repos', hide=False) }}
@@ -67,6 +56,18 @@
         <p>No group found</p>
         {% endfor %}
     </section>
+
+    {% if config.get('DATAGREPPER_URL') %}
+    <section class="project_list" id="user_graph">
+        <header>
+            <h2>Contributions</h2>
+        </header>
+        <a href="{{config.get('DATAGREPPER_URL')}}/raw?category={{config.get('DATAGREPPER_CATEGORY', 'pagure')}}&user={{username}}" target="_blank">
+          <img src="{{config.get('DATAGREPPER_URL')}}/charts/line?category={{config.get('DATAGREPPER_CATEGORY', 'pagure')}}&user={{username}}&split_on=users&delta=31536000&N=12&title=&width=600&height=200&style=light&fill=True&interpolation=cubic" alt="User activity graph"/>
+        </a>
+    </section>
+    {% endif %}
+
 {% endblock %}
 
 {% block jscripts %}