From 4e278064d975301bcc2542fd685a98bef9b4cfbe Mon Sep 17 00:00:00 2001 From: ger619 Date: Mon, 8 Apr 2024 17:36:45 +0300 Subject: [PATCH] Add hall of fame header --- app/views/hall_of_fames/index.html.erb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/views/hall_of_fames/index.html.erb b/app/views/hall_of_fames/index.html.erb index 6a75e6d3d..4e2af7654 100644 --- a/app/views/hall_of_fames/index.html.erb +++ b/app/views/hall_of_fames/index.html.erb @@ -1,10 +1,19 @@ +
+ Hall of Fame +
+ <% if current_user %> + <%=link_to "Add News", new_news_path, class: "normal-case border-2 border-[#fff] hover:bg-[#fff] font-normal lg:text-2xl md:text-xl sm:text-sm sm:text-xl text-white hover:text-[#FAE115] p-2 rounded-full mb-2" %> + <%=link_to "Add Advert", new_advert_path, class: "normal-case border-2 border-[#fff] hover:bg-[#fff] font-normal lg:text-2xl md:text-xl sm:text-sm sm:text-xl text-white hover:text-[#FAE115] p-2 rounded-full mb-2" %> + + <% end %> +
+
<% if notice.present? %>

<%= notice %>

<% end %>
-

Hall of fames

<% if current_user %> <%= link_to "New hall of fame", new_hall_of_fame_path, class: "rounded-lg py-3 px-5 bg-blue-600 text-white block font-medium" %> <% end %>