Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ def about
def welcome
end

def gdpr
end
end
50 changes: 30 additions & 20 deletions app/views/groups/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,37 @@
= image_tag('follow_your_dreams.gif')

.profile-main
- if @group.not_full? && @group.active? && show_join_group_button?(current_person, @group)
.group-join-box
= render 'join'
.flex-index
.group-info.flex-index-main
- if @group.not_full? && @group.active? && show_join_group_button?(current_person, @group)
.group-join-box
= render 'join'

%p.tags
- if @group.full?
%span.tag.tag-full
Full
- if @group.inactive?
%span.tag.tag-inactive
Inactive
- if @group.allow_male_students?
%span.tag.tag-mixed
Mixed group
- if @group.level?
%p
%strong Level:
= @group.level
- if @group.activities?
%p.group-description
= markdown(@group.activities)

.group-notices.flex-index-sidebar
%h3 Latest group upates
%ul
%li
%time 2018-05-21
%p we can't meet, meetup time

%p.tags
- if @group.full?
%span.tag.tag-full
Full
- if @group.inactive?
%span.tag.tag-inactive
Inactive
- if @group.allow_male_students?
%span.tag.tag-mixed
Mixed group
- if @group.level?
%p
%strong Level:
= @group.level
- if @group.activities?
%p.group-description
= markdown(@group.activities)

%ul.group-tabs
%li.group-tab
Expand Down
3 changes: 3 additions & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
<p>💻 Code on <a href="https://github.com/rubycorns/rorganize.it" title="Rorganize.it code on GitHub">GitHub</a></p>
<p>🚀 Deployed on <a href="https://uberspace.de/" title="Running in production on Uberspace">Uberspace</a></p>
</div>
<div>
<p>🔒️ <a href="<%= gdpr_path %>">GDPR</a> section</p>
</div>
</footer>
</body>
</html>
4 changes: 4 additions & 0 deletions app/views/pages/gdpr.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.about-page
.flex-index
%section.flex-index-main
%h1 General Data Protection Regulation
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
get '/about' => 'pages#about'
get '/welcome' => 'pages#welcome'
get '/conduct' => 'pages#conduct'
get '/gdpr' => 'pages#gdpr'

#resources routing declare all of the common routes for the certain controller (index, new, edit etc...)
resources :groups do
Expand Down