From 313500c2572bdbc86be44aacf358384b8f3cf0e1 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Wed, 21 Jun 2017 09:39:30 +0200 Subject: [PATCH] added gather mod tab to staff page --- app/models/group.rb | 8 ++++++++ app/views/about/staff.html.erb | 32 ++++++++++++++++++++++++++++++-- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/app/models/group.rb b/app/models/group.rb index 367185d..1b80099 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -86,4 +86,12 @@ class Group < ActiveRecord::Base end casters end + + def self.gathermods + gathermods = [] + (find(GATHER_MODERATORS).groupers).each do |g| + gathermods << g unless gathermods.include? g + end + gathermods + end end diff --git a/app/views/about/staff.html.erb b/app/views/about/staff.html.erb index ae75282..8a75512 100644 --- a/app/views/about/staff.html.erb +++ b/app/views/about/staff.html.erb @@ -6,7 +6,7 @@

To contact us:

    -
  1. Use the <%= link_to "contact", new_issue_path() %> form (you must be logged in)
  2. +
  3. Use the <%= link_to "contact", new_issue_path %> form (you must be logged in)
  4. Visit our <%= link_to "IRC", article_path(408) %> channel <%= link_to "#ENSL", "irc://irc.quakenet.org/ensl" %> on Quakenet.
  5. Send email to the head admin as per the list below
  6. Contact other staff members directly, check below and click profile for contact details
  7. @@ -21,6 +21,7 @@
  8. Admins
  9. Referees
  10. Casters
  11. +
  12. Gather Mods
  13. Extras
  14. Support
  15. @@ -106,6 +107,33 @@ <% end %> +
    +

    GATHER MODERATORS

    + + + + + + + + + <% Group.gathermods.each do |grouper| %> + + + + + + + + <% end %> +
    UsernameEmailTaskAge
    <%= flag grouper.user.country %><%= namelink grouper.user %><%= h grouper.user.email_s %> + <% if grouper.task %> + <%= h grouper.task %> + <% else %> + <%= h grouper.group.name.singularize %> + <% end %> + <%= h grouper.user.age %>
    +

    Extras

    @@ -137,7 +165,7 @@

    Support