2017-07-06 16:24:03 +00:00
|
|
|
- @hide_top_links = true
|
2018-06-12 14:14:52 +00:00
|
|
|
- page_title _("Groups")
|
|
|
|
- header_title _("Groups"), dashboard_groups_path
|
2015-09-08 13:49:20 +00:00
|
|
|
|
2015-08-20 09:59:14 +00:00
|
|
|
- if current_user
|
|
|
|
= render 'dashboard/groups_head'
|
2015-09-08 13:49:20 +00:00
|
|
|
- else
|
|
|
|
= render 'explore/head'
|
2017-03-03 10:13:03 +00:00
|
|
|
= render 'nav'
|
2014-07-11 16:29:51 +00:00
|
|
|
|
2017-05-02 08:05:43 +00:00
|
|
|
- if cookies[:explore_groups_landing_dismissed] != 'true'
|
2018-04-23 20:21:52 +00:00
|
|
|
.explore-groups.landing.content-block.js-explore-groups-landing.hide
|
2018-06-12 14:14:52 +00:00
|
|
|
%button.dismiss-button{ type: 'button', 'aria-label' => _('Dismiss') }= icon('times')
|
2017-05-02 08:05:43 +00:00
|
|
|
.svg-container
|
|
|
|
= custom_icon('icon_explore_groups_splash')
|
|
|
|
.inner-content
|
2018-06-12 14:14:52 +00:00
|
|
|
%p= _("Below you will find all the groups that are public.")
|
|
|
|
%p= _("You can easily contribute to them by requesting to join these groups.")
|
2017-05-02 08:05:43 +00:00
|
|
|
|
2017-10-04 14:10:24 +00:00
|
|
|
- if params[:filter].blank? && @groups.empty?
|
2018-06-12 14:14:52 +00:00
|
|
|
.nothing-here-block= _("No public groups")
|
2017-10-04 14:10:24 +00:00
|
|
|
- else
|
|
|
|
= render 'groups'
|