From e5619547d5544a043dfec173f17020b09f882a98 Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 11 Feb 2021 20:40:00 +0100 Subject: [FIX] Availability of agents --- app/views/agents/_agent.html.erb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'app/views/agents') diff --git a/app/views/agents/_agent.html.erb b/app/views/agents/_agent.html.erb index 5a74df1..fda8bd0 100644 --- a/app/views/agents/_agent.html.erb +++ b/app/views/agents/_agent.html.erb @@ -3,13 +3,28 @@

<%= link_to agent.name, agent_url(agent) %>

<%= link_to agent_url(agent) %>

+ <% if current_agent == agent %> +
+

Vous faƮtes partie de cet agent

+

Ainsi que <%= pluralize(agent.members.count, 'membre') %>.

+ +
+ <% end %>

Statistiques

+ +<% content_for :debug do %> +<%=tag.pre agent.inspect %> +<% end %> -- cgit v1.2.3