Skip to content

Commit

Permalink
More layout changes for the legend partial.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Apr 21, 2010
1 parent a68c405 commit 2c484e9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/stylesheets/partials/_legend.sass
Expand Up @@ -4,4 +4,7 @@ span#legend
display: inline-block
height: 45px
margin: 0 auto
float: right
float: right
text-align: center
.centered
padding-top: 5px
6 changes: 4 additions & 2 deletions app/views/features/_legend.html.erb
@@ -1,5 +1,7 @@
<span id="legend" class=" highlighttable ui-widget ui-widget-content ui-corner-all">
<span>Legend</span><br />
<span class="gd"><%= (defined? change)? "Changes to the" : "Removing from"%> <%=h diff_from %></span>
<span class="gi"><%= (defined? change)? "Changes to the" : "Adding to"%> <%=h diff_to %></span>
<div class="centered">
<span class="gd"><%= (defined? change)? "Changes to the" : "Removing from"%> <%=h diff_from %></span>
<span class="gi"><%= (defined? change)? "Changes to the" : "Adding to"%> <%=h diff_to %></span>
</div>
</span>

0 comments on commit 2c484e9

Please sign in to comment.