Tweak display of todolist descriptions
Indent, call out, and add some borders, among other things. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
becb5b2356
commit
ff1359050f
@ -1047,7 +1047,18 @@ ul.admin-actions {
|
||||
|
||||
/* todo lists (public and private) */
|
||||
.todo-info {
|
||||
margin: 0; color: #999;
|
||||
color: #999;
|
||||
border-bottom: 1px dotted #bbb;
|
||||
}
|
||||
|
||||
.todo-description {
|
||||
margin-top: 1em;
|
||||
padding-left: 2em;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
.todo-pkgbases {
|
||||
border-top: 1px dotted #bbb;
|
||||
}
|
||||
|
||||
.todo-list h4 {
|
||||
|
@ -22,16 +22,18 @@ <h2>Todo List: {{ list.name }}</h2>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
<p class="todo-info">{{ list.created|date }} - {{ list.creator.get_full_name }}</p>
|
||||
<div class="todo-info">{{ list.created|date }} - {{ list.creator.get_full_name }}</div>
|
||||
|
||||
<div>{{list.description|urlize|linebreaks}}</div>
|
||||
<div class="todo-description">
|
||||
{{list.stripped_description|default:'(no description)'|urlize|linebreaks}}
|
||||
</div>
|
||||
|
||||
<p>Link to lists of pkgbase values:</p>
|
||||
<ul>{% for svn_root in svn_roots %}
|
||||
<li><a href="pkgbases/{{ svn_root }}/">{{ svn_root }}</a></li>
|
||||
{% endfor %}</ul>
|
||||
|
||||
<p>{{ list.packages|length }} total todo list package{{ list.packages|pluralize }} found.</p>
|
||||
<div class="todo-pkgbases">
|
||||
<p>Link to lists of pkgbase values:</p>
|
||||
<ul>{% for svn_root in svn_roots %}
|
||||
<li><a href="pkgbases/{{ svn_root }}/">{{ svn_root }}</a></li>
|
||||
{% endfor %}</ul>
|
||||
</div>
|
||||
|
||||
<div class="box filter-criteria">
|
||||
<h3>Filter Todo List Packages</h3>
|
||||
@ -54,7 +56,10 @@ <h3>Filter Todo List Packages</h3>
|
||||
<input type="checkbox" name="incomplete" id="id_incomplete" value="incomplete"/></div>
|
||||
<div ><label> </label><input title="Reset search criteria" type="button" id="criteria_reset" value="Reset"/></div>
|
||||
<div class="clear"></div>
|
||||
<div id="filter-info"><span id="filter-count">{{ list.packages|length }}</span> todo list packages displayed.</div>
|
||||
<div id="filter-info">
|
||||
<span id="filter-count">{{ list.packages|length }}</span> packages displayed out of
|
||||
{{ list.packages|length }} total package{{ list.packages|pluralize }}.
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -35,6 +35,10 @@ class Meta:
|
||||
def __unicode__(self):
|
||||
return self.name
|
||||
|
||||
@property
|
||||
def stripped_description(self):
|
||||
return self.description.strip()
|
||||
|
||||
def get_absolute_url(self):
|
||||
return '/todo/%s/' % self.slug
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user