Skip to content

Commit

Permalink
Merge pull request #65 from pikesley/fix-update-button
Browse files Browse the repository at this point in the history
Pixel PERFECT
  • Loading branch information
Sam Pikesley committed Jan 31, 2016
2 parents 6b4c8ec + 5f76c7c commit 5f9ea02
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,7 @@ caption, .chart-hours {
.field_with_errors {

}

.chart-hours {
padding-top: 8px;
}
2 changes: 2 additions & 0 deletions app/views/charts/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<%= render partial: 'shared/add_links' %>

<div class='chart-hours'>
<%= render partial: 'shared/hours_picker' %>
| <%= link_to 'Data', "#{root_path}?#{request.query_string}", title: 'Home' %>
Expand Down
5 changes: 5 additions & 0 deletions app/views/shared/_add_links.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div id='add-links'>
<% models.each do |model| %>
<%= link_to "Add #{model.short_name}", send("new_#{model.name.underscore}_path"), class: 'btn btn-success' %>
<% end %>
</div>
6 changes: 1 addition & 5 deletions app/views/welcome/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<div id='add-links'>
<% models.each do |model| %>
<%= link_to "Add #{model.short_name}", send("new_#{model.name.underscore}_path"), class: 'btn btn-success' %>
<% end %>
</div>
<%= render partial: 'shared/add_links' %>

<table class='table table-bordered table-striped' id=recent'>
<caption>
Expand Down

0 comments on commit 5f9ea02

Please sign in to comment.