Skip to content

Commit

Permalink
added no-restart badge (bug 668039)
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Jun 28, 2011
1 parent 455a385 commit b489e0b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
8 changes: 7 additions & 1 deletion apps/addons/templates/addons/impala/button.html
Expand Up @@ -66,8 +66,14 @@
</div> {# install #}

{% if b.detailed %}
{% with files = addon.current_version.all_files %}
{% if files and files[0].no_restart %}
<span class="no-restart badge">{{ _('No Restart Required') }}</span>
{% endif %}
{% endwith %}

{% if addon.privacy_policy %}
<a class="privacy-policy" href="{{ url('addons.privacy', addon.slug) }}">
<a class="privacy-policy badge" href="{{ url('addons.privacy', addon.slug) }}">
<strong>{{ _('Privacy Policy') }}</strong>
</a>
{% endif %}
Expand Down
12 changes: 12 additions & 0 deletions media/css/impala/addon_details.less
Expand Up @@ -2,6 +2,7 @@

#addon {
font-size: 1.2em;
font-family: @sans-stack;
position: relative;
padding: 20px 20px 20px 104px;
.icon {
Expand Down Expand Up @@ -31,6 +32,17 @@
background: url(../../img/impala/no.png) 0 30% no-repeat;
white-space: nowrap;
}
.badge {
font-size: 14px;
margin-right: 1em;
}
.no-restart {
color: #666;
background: none repeat scroll 0 0 #FFFFFF;
border: 1px solid #C9DDF2;
border-radius: 3px 3px 3px 3px;
padding: 3px 9px;
}
}

.version {
Expand Down
2 changes: 1 addition & 1 deletion media/css/impala/lib.less
Expand Up @@ -5,7 +5,7 @@


// Font Stacks
@sans-stack: Helvetica, Arial, sans-serif;
@sans-stack: "trebuchet ms", Helvetica, Arial, sans-serif;
@head-sans: "trebuchet ms", sans-serif;
@serif-stack: Georgia, serif;
@mono-stack: "andale mono", monospace;
Expand Down

0 comments on commit b489e0b

Please sign in to comment.