From 3b790eb74a28f1f71a918a00fe69d6f48d692ea9 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Mon, 11 Feb 2019 16:51:19 +0000 Subject: [PATCH] Made my tournaments page more compact and updated other static pages with updated information --- app/views/static_pages/home.html.erb | 2 +- .../static_pages/my_tournaments.html.erb | 67 +++++++++---------- app/views/static_pages/tutorials.html.erb | 5 +- 3 files changed, 36 insertions(+), 38 deletions(-) diff --git a/app/views/static_pages/home.html.erb b/app/views/static_pages/home.html.erb index 171832f..4e4c65f 100644 --- a/app/views/static_pages/home.html.erb +++ b/app/views/static_pages/home.html.erb @@ -1,7 +1,7 @@

Welcome to WrestlingDev


-

This website was created to help wrestling coaches run their tournaments. It is 2015, why are we still running bout sheets to tables and why are we still using resources to push cards on a bout board? This website was created as a free way for coaches to run a tournament smoothly with as few workers as possible.

+

This website was created to help wrestling coaches run their tournaments. This website was created as a free way for coaches to run a tournament smoothly with as few workers as possible.


If you would like to run a tournament, please click log in and then click sign up.


diff --git a/app/views/static_pages/my_tournaments.html.erb b/app/views/static_pages/my_tournaments.html.erb index 5ffaf5c..0760544 100644 --- a/app/views/static_pages/my_tournaments.html.erb +++ b/app/views/static_pages/my_tournaments.html.erb @@ -1,41 +1,41 @@ -

My Tournaments

- -
- - - - - - <% end %> - - - - - <% @tournaments.each do |tournament| %> + +
NameDate<% if user_signed_in? %><%= link_to ' New Tournament', new_tournament_path, :class=>"fas fa-plus" %>
+ - - - <% if can? :manage, tournament %> - - <% end %> + + + <% end %> - <% end %> - -
<%= link_to "#{tournament.name}", tournament %><%= tournament.date %> - <%= link_to '', edit_tournament_path(tournament), :class=>"fas fa-edit" %> - <% if can? :destroy, tournament %> - <%= link_to '', tournament, method: :delete, data: { confirm: "Are you sure you want to delete #{tournament.name}?" }, :class=>"fas fa-trash-alt" %> - <% end %> - NameDate<% if user_signed_in? %><%= link_to ' New Tournament', new_tournament_path, :class=>"fas fa-plus" %>
-
-<% if @schools.size > 0 %> -

My Schools

+ + + + <% @tournaments.each do |tournament| %> + + <%= link_to "#{tournament.name}", tournament %> + <%= tournament.date %> + <% if can? :manage, tournament %> + + <%= link_to '', edit_tournament_path(tournament), :class=>"fas fa-edit" %> + <% if can? :destroy, tournament %> + <%= link_to '', tournament, method: :delete, data: { confirm: "Are you sure you want to delete #{tournament.name}?" }, :class=>"fas fa-trash-alt" %> + <% end %> + + <% end %> + + <% end %> + +
+<% end %> +<% if @schools.size > 0 %> +

My Schools

@@ -55,7 +55,4 @@ <% end %>
-<% end %> -
- - +<% end %> \ No newline at end of file diff --git a/app/views/static_pages/tutorials.html.erb b/app/views/static_pages/tutorials.html.erb index 88c34f2..fdd39aa 100644 --- a/app/views/static_pages/tutorials.html.erb +++ b/app/views/static_pages/tutorials.html.erb @@ -1,17 +1,18 @@

Tutorials


-

Unfortunately, I do not have tutorials available at this moment in time. If you would like to learn how to use this software, please email me at jacob.wimer@gmail.com and I will gladly provide an overview of how to use this software. I've done my best to make the software intuitive and easy to use.

+

Unfortunately, I do not have tutorials available at this moment in time. If you would like to learn how to use this software, please email me at jacob.wimer@gmail.com and I will gladly provide an overview of how to use this software. I've done my best to make the software intuitive and easy to use.


Planning on using this software?


Here is a list of features available:


\ No newline at end of file