From 92ff84bbb92a64aab876dc98164d658f262b779b Mon Sep 17 00:00:00 2001 From: simplefl Date: Wed, 13 May 2015 23:17:58 +0200 Subject: [PATCH] Mute button for gather. --- app/views/gathers/_status.html.erb | 10 ++++++---- app/views/gathers/show.html.erb | 28 +++++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 5 deletions(-) diff --git a/app/views/gathers/_status.html.erb b/app/views/gathers/_status.html.erb index 50a508d..c74e92d 100644 --- a/app/views/gathers/_status.html.erb +++ b/app/views/gathers/_status.html.erb @@ -12,7 +12,7 @@

Gather running, <%= Gather::FULL - @gather.gatherers.length %> more needed.

- You can download custom maps via the + You can download custom maps via the <%= link_to "Steam Workshop", "http://steamcommunity.com/workshop/browse?searchtext=&childpublishedfileid=0§ion=items&appid=4920&browsesort=trend&requiredtags%5B%5D=level" %>.

@@ -49,13 +49,13 @@ <% elsif @gather.status == Gather::STATE_FINISHED and @gather.server %>

Gather finished, join the Server and TeamSpeak 3.

- +

Maps: <%= namelink @gather.map1.map if @gather.map1 %>, <%= (namelink @gather.map2.map) if @gather.map2 %>
- Server: + Server: <% if @gather.server %> <%= @gather.server %> - (<%= @gather.server.ip %>:<%= @gather.server.port %> ; + (<%= @gather.server.ip %>:<%= @gather.server.port %> ; password = <%= if @gather.server.password then @gather.server.password else "" end %>) <% end %>

@@ -67,6 +67,8 @@ <% end %> <% end %> + + <%= link_to "Mute", '#', id: "mute", class: 'button tiny' %> <% if cuser and cuser.admin? %> <%= link_to "Admin Page", edit_gather_url, class: 'admin button' %> <% end %> diff --git a/app/views/gathers/show.html.erb b/app/views/gathers/show.html.erb index bce9335..930cf74 100644 --- a/app/views/gathers/show.html.erb +++ b/app/views/gathers/show.html.erb @@ -1,11 +1,14 @@