Skip to content

Commit 487c3df

Browse files
committed
Show message if not in groups
1 parent fc47fe7 commit 487c3df

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

app/views/groups/index.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<% end %>
1111

1212
<div class="mdl-grid">
13-
<% for group in @groups %>
13+
<% if for group in @groups %>
1414

1515
<div class="group-card mdl-card mdl-cell mdl-cell--8-col-tablet mdl-shadow--2dp">
1616

@@ -27,6 +27,8 @@
2727

2828
</div>
2929

30+
<% end.empty? %>
31+
<h2 class='mdl-color-text--grey-600'><%= t('.no_groups') %></h2>
3032
<% end %>
3133
</div>
3234

config/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ en:
6868
edit: 'Edit group'
6969
index:
7070
pagetitle: 'Groups'
71+
no_groups: 'You are not in any groups.'
7172
show:
7273
videos:
7374
heading: 'Videos'

config/locales/fi.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ fi:
6767
edit: 'Muokkaa ryhmää'
6868
index:
6969
pagetitle: 'Ryhmät'
70+
no_groups: 'Et ole missään ryhmässä.'
7071
show:
7172
videos:
7273
heading: 'Videot'

0 commit comments

Comments
 (0)