Skip to content

Commit

Permalink
General improvements to the legends partial and the way it is displayed.
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Apr 21, 2010
1 parent 60a68f7 commit 6be92a4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions app/stylesheets/partials/_legend.sass
@@ -1,6 +1,7 @@
span#legend
width: 250px
padding: 5px 0 10px 10px
width: 280px
padding: 5px 0 0 10px
display: inline-block
height: 56px
margin: 0 10px 0 0
height: 45px
margin: 0 auto
float: right
2 changes: 1 addition & 1 deletion app/views/features/_legend.html.erb
@@ -1,5 +1,5 @@
<span id="legend" class=" highlighttable ui-widget ui-widget-content ui-corner-all">
<p>Legend</p>
<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>
</span>
4 changes: 2 additions & 2 deletions app/views/features/merge.html.erb
Expand Up @@ -2,13 +2,13 @@
<%= stylesheet_link_tag "pretty_diff" %>
<% end %>

<%= render :partial => "legend", :locals => {:diff_from => "file", :diff_to => "file"} %>

<span id="panel" class="ui-widget ui-widget-content ui-corner-all">
<%= link_to 'Dry-run', file_merge_feature_path(@feature, :dry_run => true) %>
<%= link_to 'Patch', file_merge_feature_path(@feature) %>
</span>

<%= render :partial => "legend", :locals => {:diff_from => "file", :diff_to => "file"} %>

<div class="notice">This will change the source file. Unless you use source control, you may lose all changes</div>

<%= @pretty.to_html %>
4 changes: 2 additions & 2 deletions app/views/features/system_merge.html.erb
Expand Up @@ -2,12 +2,12 @@
<%= stylesheet_link_tag "pretty_diff" %>
<% end %>

<%= render :partial => "legend", :locals => {:diff_from => "system", :diff_to => "system"} %>

<span id="panel" class="ui-widget ui-widget-content ui-corner-all">
<%= link_to 'Update', system_sync_feature_path(@feature) %>
</span>

<%= render :partial => "legend", :locals => {:diff_from => "system", :diff_to => "system"} %>

<div class="notice">This change will update the system feature</div>

<%= @pretty.to_html %>

0 comments on commit 6be92a4

Please sign in to comment.