Skip to content

Commit

Permalink
Improve code formatting. #374
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel Metzenthin committed Feb 8, 2018
1 parent 3b33135 commit bad2b46
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions app/views/devise/registrations/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
</div>

<% if user_signed_in? and current_user.non_single_teams.present? %>

<h4><%= t('teams.index.my_teams')%> <a><%= t('dashboard.show_all')%></a></h4>


<div class="tile-wrapper">
<% current_user.non_single_teams.each do |team| %>
<%= render partial: 'application/tile_template', locals: {title: team.name, image_url: team.avatar_url || 'https://owncloud.hpi.de/index.php/s/Rtv2QMBLOKmGqiA/download', description: team.kind_of_sport,
destination_path: team_path(team), description_class: ''} %>
<% end %>
</div>
<h4><%= t('teams.index.my_teams')%> <a><%= t('dashboard.show_all')%></a></h4>

<div class="tile-wrapper">
<% current_user.non_single_teams.each do |team| %>
<%= render partial: 'application/tile_template', locals: {title: team.name, image_url: team.avatar_url || 'https://owncloud.hpi.de/index.php/s/Rtv2QMBLOKmGqiA/download', description: team.kind_of_sport,
destination_path: team_path(team), description_class: ''} %>
<% end %>
</div>
<% end %>

0 comments on commit bad2b46

Please sign in to comment.