2017-07-06 12:24:03 -04:00
|
|
|
- @hide_top_links = true
|
2018-06-12 10:14:52 -04:00
|
|
|
- page_title _("Groups")
|
|
|
|
- header_title _("Groups"), dashboard_groups_path
|
2015-09-08 09:49:20 -04:00
|
|
|
|
2015-08-20 05:59:14 -04:00
|
|
|
- if current_user
|
|
|
|
= render 'dashboard/groups_head'
|
2015-09-08 09:49:20 -04:00
|
|
|
- else
|
|
|
|
= render 'explore/head'
|
2017-03-03 05:13:03 -05:00
|
|
|
= render 'nav'
|
2014-07-11 12:29:51 -04:00
|
|
|
|
2017-05-02 04:05:43 -04:00
|
|
|
- if cookies[:explore_groups_landing_dismissed] != 'true'
|
2018-04-23 16:21:52 -04:00
|
|
|
.explore-groups.landing.content-block.js-explore-groups-landing.hide
|
2018-10-15 14:35:00 -04:00
|
|
|
%button.dismiss-button{ type: 'button', 'aria-label' => _('Dismiss') }= sprite_icon('close', size: 16)
|
2017-05-02 04:05:43 -04:00
|
|
|
.svg-container
|
|
|
|
= custom_icon('icon_explore_groups_splash')
|
|
|
|
.inner-content
|
2018-06-12 10:14:52 -04: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 04:05:43 -04:00
|
|
|
|
2017-10-04 10:10:24 -04:00
|
|
|
- if params[:filter].blank? && @groups.empty?
|
2018-06-12 10:14:52 -04:00
|
|
|
.nothing-here-block= _("No public groups")
|
2017-10-04 10:10:24 -04:00
|
|
|
- else
|
|
|
|
= render 'groups'
|