diff --git a/app/views/characters/_list.html.erb b/app/views/characters/_list.html.erb index c83dbe31..b28343ea 100644 --- a/app/views/characters/_list.html.erb +++ b/app/views/characters/_list.html.erb @@ -1,48 +1,37 @@ -<% @cardcounter = 0 %> <% @characters.each do |character| %> - - <% if @cardcounter % 4 == 0 %> -
-
- <% if character.role.length > 0 %>
- <%= character.role %><% if character.age.length > 0 %>, <%= character.age %><% end %>
+
+
+ <% if character.role.length > 0 %>
+ <%= character.role %><% if character.age.length > 0 %>, <%= character.age %><% end %>
+ <% end %>
+
+
+ Lorem ipsum one-line description here lel
+
- <% if session[:user] and session[:user] == character.user.id %>
- <%= link_to t('.view', :default => t("helpers.links.view")),
- character_path(character), :class => 'btn btn-sm' %>
- <%= link_to t('.edit', :default => t("helpers.links.edit")),
- character_edit_path(character), :class => 'btn btn-sm' %>
- <%= link_to t('.destroy', :default => t("helpers.links.destroy")),
- character_path(character),
- :method => :delete,
- :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')),
- :class => 'btn btn-danger btn-sm' %>
- <% end %>
-
-
+ <%= simple_format link_to character.name, character_path(character) %>
+
+
- Consistency is sometimes hard to keep, and having a reference of everything about your character for yourself can help you down the line, especially if you're writing a series. -
- <%= link_to 'New character', character_create_path, :class => 'btn btn-primary' %> ++ Consistency is sometimes hard to keep, and having a reference of everything about your character for yourself can help you down the line, especially if you're writing a series. +
+
+ <% if session[:user] and session[:user] == character.user.id %> + <%= link_to t('.view', :default => t("helpers.links.view")), + character_path(character), :class => 'btn btn-sm' %> + <%= link_to t('.edit', :default => t("helpers.links.edit")), + character_edit_path(character), :class => 'btn btn-sm' %> + <%= link_to t('.destroy', :default => t("helpers.links.destroy")), + character_path(character), + :method => :delete, + :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), + :class => 'btn btn-danger btn-sm' %> <% end %> - -
-- Lorem ipsum one-line description here lel -
-