--- a/ForgeGit/forgegit/templates/index.html +++ b/ForgeGit/forgegit/templates/index.html @@ -18,25 +18,24 @@ <div class="row"> <div class="column grid_12"> <h2>Project: $c.project.shortname</h2> - <py:if test="c.app.repo"> - <dl> - <dt>read access</dt> - <dd>git clone git://$c.app.repo.scm_url_path</dd> - <dt>read/write access</dt> - <dd>git clone ssh://$c.app.repo.scm_url_path</dd> - <dt>status</dt> - <dd>${c.app.repo.status}</dd> - </dl> + <p py:if="c.app.repo"> + Read access: <code>git clone git://$c.app.repo.scm_url_path</code><br/> + Read/write access: <code>git clone ssh://$c.app.repo.scm_url_path</code><br/> + Status: ${c.app.repo.status} <form py:if="allow_fork" action="${c.app.repo.url()}fork" method="GET"> <input type="submit" value="Fork"/> </form> + </p> + <div style="clear:both"> </div> + <py:if test="log"> + <h2>Recent Commits<py:if test="branch"> on $branch</py:if></h2> + ${c.log_widget.display(value=log, show_paging=False, + limit=limit, page=page, count=count)} + <a py:if="int(count) > int(limit)" href="log?page=1">More</a> </py:if> - <h2>Recent Commits</h2> - <h3 py:if="branch">Browsing $branch</h3> - <py:for each="ci in log"> - ${c.revision_widget.display(**ci)} - </py:for> - <a py:if="next_link" href="$next_link">More</a> + <py:if test="not log"> + <b>No (more) commits</b> + </py:if> </div> </div> </div>