Commits

Matthew Marshall committed 3af585b

Added list of user's repositories to from page.

  • Participants
  • Parent commits b9b15d6

Comments (0)

Files changed (2)

htdocs/static/freehg.css

 .footer {text-align:center; padding:20px 30px 0 0;}
 
 .about {padding:10px 20px;}
+.about h5 {margin-bottom:.5em;}
 
 
 tr.parity0 {background-color:#ccc;}

templates/frontpage.html

 </div>
 
 <div class="span-4 last about">
-<h5>What is this site?</h5>
-<p>
-<a href="http://selenic.com/mercurial/">Mercurial</a> [Hg for short] is a Distributed Version Control System.  Instead of using a single repository per project, each developer can have their own repository.
-</p>
+    {% if user.is_authenticated %}
+        {% if user.repo_set.count %}
+            <h5>Your Repositories:</h5>
+            <p>
+                {% for repo in user.repo_set.all %}
+                    <a href="{{repo.get_absolute_url}}">{{repo.get_long_name}}</a><br />
+                {% endfor %}
+            </p>
+        {% endif %}
+    {% endif %}
+    <h5>What is this site?</h5>
+    <p>
+        <a href="http://selenic.com/mercurial/">Mercurial</a> [Hg for short] is a Distributed Version Control System.  Instead of using a single repository per project, each developer can have their own repository.
+    </p>
 
-<p>
-<strong>freeHg.org</strong> makes it quick and easy to share your repositories.
-</p>
+    <p>
+        <strong>freeHg.org</strong> makes it quick and easy to share your repositories.
+    </p>
 </div>
 
 <script type="text/javascript">