Minor CSS cleaning

- Legacy-Id: 2070
This commit is contained in:
Pasi Eronen 2010-03-12 16:50:12 +00:00
parent 2092927312
commit 6ed8ba6960
3 changed files with 10 additions and 9 deletions

View file

@ -186,13 +186,13 @@ def state_age_colored(doc):
goal1 = 14
goal2 = 28
if days > goal2:
style = 'padding:0 2px;background:#ffa0a0;'
class_name = "ietf-small ietf-highlight-r"
elif days > goal1:
style = 'padding:0 2px;background:yellow;'
class_name = "ietf-small ietf-highlight-y"
else:
style = ''
if style:
class_name = "ietf-small"
if days > goal1:
title = ' title="Goal is <%d days"' % (goal1,)
else:
title = ''
return '<span style="font-size:85%%;%s"%s>(for&nbsp;%d&nbsp;day%s)</span>' % (style,title,days,('','s')[days != 1])
return '<span class="%s"%s>(for&nbsp;%d&nbsp;day%s)</span>' % (class_name,title,days,('','s')[days != 1])

View file

@ -41,8 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% else %}<a href="/doc/{{doc.id.draft_name}}/">{{doc.id.draft_name_and_revision}}</a>{% endif %}</td>
<td class="title">{{ doc.title|escape }}</td>
<td class="date">{% if not doc.rfc %}{{ doc.publication_date }}{% else %}{{ doc.publication_date|date:"Y-m" }}{% endif %}
{% if doc.publication_date|timesince_days|less_than:"14" %}<br/><span style="padding:0 2px;background:yellow;font-size:85%;">{% if not doc.rfc%}<a href="http://tools.ietf.org/rfcdiff?url2={{doc.id.draft_name_and_revision}}">new</a>{%else%}new{%endif%}</span>{%endif%}
{% if doc.id and doc.id.expected_expiration_date and doc.id.expected_expiration_date|timesince_days|greater_than:"-14" %}<br/><span style="padding:0 2px;font-size:85%;background:yellow;">expires soon</span>{%endif%}
{% if doc.publication_date|timesince_days|less_than:"14" %}<br/><span class="ietf-small ietf-highlight-y">{% if not doc.rfc%}<a href="http://tools.ietf.org/rfcdiff?url2={{doc.id.draft_name_and_revision}}">new</a>{%else%}new{%endif%}</span>{%endif%}
{% if doc.id and doc.id.expected_expiration_date and doc.id.expected_expiration_date|timesince_days|greater_than:"-14" %}<br/><span class="ietf-small ietf-highlight-y">expires soon</span>{%endif%}
</td>
<td class="status">{{ doc.friendly_state|safe }}

View file

@ -113,6 +113,7 @@ td.ballot_icon_gray { background: #c0c0c0; }
td.ballot_icon_yellow { background: #ffff00; }
table.ballot_icon td.ballot_icon_my { border: 3px outset black;}
.ietf-highlight-y { padding:0 2px;background:yellow;font-size:85%;}
.ietf-highlight-r { padding:0 2px;background:#ffa0a0;font-size:85%;}
.ietf-small { font-size:85%; }
.ietf-highlight-y { padding:0 2px;background:yellow;}
.ietf-highlight-r { padding:0 2px;background:#ffa0a0;}
.ietf-divider { background: #2647a0; color: white; font-size:116%; padding:0.5em 1em; }