Improve the rendering of the prev / next links in the issue view and note the change in NEWS.

This commit is contained in:
Thomas Keller 2011-03-18 02:14:22 +01:00
parent 22d4bd0e6f
commit 045eb766f1
3 changed files with 7 additions and 1 deletions

View File

@ -12,6 +12,7 @@
- Forge-wide and per-project watch lists of starred issues (issue 589) - Forge-wide and per-project watch lists of starred issues (issue 589)
- Configure a default issue template for each project (issues 212 and 540) - Configure a default issue template for each project (issues 212 and 540)
- Pick default issue labels from the configured project settings (issue 556) - Pick default issue labels from the configured project settings (issue 556)
- Navigate to a preceding / following issue in the issue detail view
- Many new text syntaxes to auto-link revisions (see [[AutomaticLinks]], issue 569) - Many new text syntaxes to auto-link revisions (see [[AutomaticLinks]], issue 569)
* _Documentation wiki_: * _Documentation wiki_:

View File

@ -1,7 +1,7 @@
{extends "idf/issues/base.html"} {extends "idf/issues/base.html"}
{block titleicon}{if $form}<form class="star" method="post" action="{url 'IDF_Views_Issue::star', array($project.shortname, $issue.id)}"><input type="image" src="{if $starred}{media '/idf/img/star.png'}{else}{media '/idf/img/star-grey.png'}{/if}" name="submit" title="{if $starred}{trans 'Remove this issue from your watch list'}{else}{trans 'Add this issue to your watch list'}{/if}" /></form> {/if}{/block} {block titleicon}{if $form}<form class="star" method="post" action="{url 'IDF_Views_Issue::star', array($project.shortname, $issue.id)}"><input type="image" src="{if $starred}{media '/idf/img/star.png'}{else}{media '/idf/img/star-grey.png'}{/if}" name="submit" title="{if $starred}{trans 'Remove this issue from your watch list'}{else}{trans 'Add this issue to your watch list'}{/if}" /></form> {/if}{/block}
{block body} {block body}
<div style="float:right;"> <div class="issue-prev-next">
{if $previous_issue_id} {if $previous_issue_id}
<a href="{url 'IDF_Views_Issue::view', array($project.shortname, $previous_issue_id)}" title="{if $closed}{trans 'Click here to view the previous closed issue'}{else}{trans 'Click here to view the previous open issue'}{/if}">Previous issue</a> <a href="{url 'IDF_Views_Issue::view', array($project.shortname, $previous_issue_id)}" title="{if $closed}{trans 'Click here to view the previous closed issue'}{else}{trans 'Click here to view the previous open issue'}{/if}">Previous issue</a>
{/if} {/if}

View File

@ -273,6 +273,11 @@ div.issue-changes-timeline {
color: #888a85; color: #888a85;
} }
div.issue-prev-next {
float: right;
margin-top: -25px;
}
div.issue-submit-info { div.issue-submit-info {
background-color: #d3d7cf; background-color: #d3d7cf;
-moz-border-radius: 3px; -moz-border-radius: 3px;