Skip to content

Commit

Permalink
Moved all placeholder text to use one class
Browse files Browse the repository at this point in the history
It has no special styling, but it could well later, and this makes this
text easier to find
  • Loading branch information
vkoves committed Oct 17, 2018
1 parent bfff163 commit 8334034
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/views/favorites/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= render "stops/show_with_issues", stop: stop %>
<% end %>
<% else %>
<em>You have no favorite stops! Go to <%= link_to "All Lines", lines_path %> or search for stops to favorite them.</em>
<em class="placeholder">You have no favorite stops! Go to <%= link_to "All Lines", lines_path %> or search for stops to favorite them.</em>
<% end %>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/lines/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<%= render "lines/show", line: line %>
<% end %>
<% else %>
<em>There are no lines in this Caravan!</em>
<em class="placeholder">There are no lines in this Caravan!</em>
<% end %>
</div>

Expand Down
2 changes: 1 addition & 1 deletion app/views/pages/history.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div>You have <%= pluralize(current_user.issues.length, 'issue') %>:</div>
<%= render 'issues/show_list', issues: current_user.issues %>
<% else %>
<em>You have not reported any issues yet!</em>
<em class="placeholder">You have not reported any issues yet!</em>
<% end %>
<% else %>
<div>Login to see your reported issues.</div>
Expand Down
5 changes: 2 additions & 3 deletions app/views/pages/view_issues.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,14 @@
<%= render "stops/show_with_issues", stop: stop %>
<% end %>
<% else %>
<h3>There seem to be no nearby stops!</h3>
<em class="placeholder">There seem to be no nearby stops!</em>
<% end %>
<% else %>
<h3>We can't show you nearby stops without location services allowed!</h3>
<% end %>
</div>

<% if current_user %>

<h2>
<%= image_tag "star.svg", width: "30px", class: "star" %>
Favorite Stops
Expand All @@ -31,7 +30,7 @@
<%= render "stops/show_with_issues", stop: stop %>
<% end %>
<% if current_user.favorites.empty? %>
You have no favorite stops! Go to <%= link_to "All Lines", lines_path %> or search for stops to favorite them.
<em class="placeholder">You have no favorite stops! Go to <%= link_to "All Lines", lines_path %> or search for stops to favorite them.</em>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit 8334034

Please sign in to comment.