Skip to content

Commit

Permalink
Add leading and trailing spaces around Show/Edit/Back links in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
januszm committed Mar 16, 2017
1 parent af14a9b commit 4157703
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/generators/slim/scaffold/templates/edit.html.slim
Expand Up @@ -2,7 +2,7 @@ h1 Editing <%= singular_table_name %>

== render 'form'

= link_to 'Show', @<%= singular_table_name %>
=> link_to 'Show', @<%= singular_table_name %>
'|
= link_to 'Back', <%= index_helper %>_path
=< link_to 'Back', <%= index_helper %>_path

4 changes: 2 additions & 2 deletions lib/generators/slim/scaffold/templates/show.html.slim
Expand Up @@ -6,6 +6,6 @@ p
= @<%= singular_table_name %>.<%= attribute.name %>
<% end -%>

= link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
=> link_to 'Edit', edit_<%= singular_table_name %>_path(@<%= singular_table_name %>)
'|
= link_to 'Back', <%= index_helper %>_path
=< link_to 'Back', <%= index_helper %>_path

0 comments on commit 4157703

Please sign in to comment.