aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
committersadbeast <sadbeast@sadbeast.com>2024-01-31 17:47:56 -0800
commit332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 (patch)
tree6ae553317f12a7a6a29c849c8805ffab96436dc2 /app/views
downloadtd-main.tar.gz
td-main.tar.bz2
initial mistakeHEADmain
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/application.html.erb25
-rw-r--r--app/views/layouts/mailer.html.erb13
-rw-r--r--app/views/layouts/mailer.text.erb1
-rw-r--r--app/views/leagues/index.html.erb3
-rw-r--r--app/views/leagues/show.html.erb33
-rw-r--r--app/views/rodauth_mailer/email_auth.text.erb5
-rw-r--r--app/views/rodauth_mailer/password_changed.text.erb2
-rw-r--r--app/views/rodauth_mailer/reset_password.text.erb5
-rw-r--r--app/views/rodauth_mailer/unlock_account.text.erb5
-rw-r--r--app/views/rodauth_mailer/verify_account.text.erb4
-rw-r--r--app/views/rodauth_mailer/verify_login_change.text.erb10
11 files changed, 106 insertions, 0 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
new file mode 100644
index 0000000..2e2c0cc
--- /dev/null
+++ b/app/views/layouts/application.html.erb
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Team Draft</title>
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+ <%= csrf_meta_tags %>
+ <%= csp_meta_tag %>
+
+ <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
+ <%= javascript_importmap_tags %>
+ </head>
+
+ <body>
+ <nav class="container-fluid">
+ <ul>
+ <li>
+ <a href="/" class="contrast"><strong>Team Draft</strong></a>
+ </li>
+ </ul>
+ </nav>
+ <main class="container">
+ <%= yield %>
+ </main>
+ </body>
+</html>
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
new file mode 100644
index 0000000..3aac900
--- /dev/null
+++ b/app/views/layouts/mailer.html.erb
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <style>
+ /* Email styles need to be inline */
+ </style>
+ </head>
+
+ <body>
+ <%= yield %>
+ </body>
+</html>
diff --git a/app/views/layouts/mailer.text.erb b/app/views/layouts/mailer.text.erb
new file mode 100644
index 0000000..37f0bdd
--- /dev/null
+++ b/app/views/layouts/mailer.text.erb
@@ -0,0 +1 @@
+<%= yield %>
diff --git a/app/views/leagues/index.html.erb b/app/views/leagues/index.html.erb
new file mode 100644
index 0000000..bcfa1fd
--- /dev/null
+++ b/app/views/leagues/index.html.erb
@@ -0,0 +1,3 @@
+<% @leagues.each do |league| %>
+ <p><%= link_to league.name, league_path(league) %></p>
+<% end %>
diff --git a/app/views/leagues/show.html.erb b/app/views/leagues/show.html.erb
new file mode 100644
index 0000000..d7a43d3
--- /dev/null
+++ b/app/views/leagues/show.html.erb
@@ -0,0 +1,33 @@
+<div class="grid">
+<% @player_scores.each do |score| %>
+ <div><strong><%= score.player %> - <%= score.score %></strong></div>
+<% end %>
+</div>
+<table role="grid">
+ <thead>
+ <tr>
+ <th scope="col"><%= sort_link(@q, :team) %></th>
+ <th scope="col"><%= sort_link(@q, :player) %></th>
+ <th scope="col" style="width: 11em"><%= sort_link(@q, :total) %></th>
+ </tr>
+ </thead>
+ <tbody>
+ <% @scores.each do |score| %>
+ <tr>
+ <td scope="row"><%= score.team %></td>
+ <td><%= score.player %></td>
+ <td>
+ <%= score.total %>
+ <p>
+ <small><strong><abbr title="Wins">W</abbr>:</strong> <%= score.win %></small>
+ <% if score.playoffs > 0 %><small><strong><abbr title="Made the Playoffs">P</abbr>:</strong> <%= score.playoffs %></small><% end %>
+ <% if score.divisional > 0 %><small><strong><abbr title="Made the Divisional Round">D</abbr>:</strong> <%= score.divisional %></small><% end %>
+ <% if score.conference > 0 %><small><strong><abbr title="Made the Conference Championship">C</abbr>:</strong> <%= score.conference %></small><% end %>
+ <% if score.superbowl > 0 %><small><strong><abbr title="Made the Superbowl">S</abbr>:</strong> <%= score.superbowl %></small><% end %>
+ <% if score.champion > 0 %><small><strong><abbr title="Superbowl Winner">SW</abbr>:</strong> <%= score.champion %></small><% end %>
+ </p>
+ </td>
+ </tr>
+ <% end %>
+ </tbody>
+</table>
diff --git a/app/views/rodauth_mailer/email_auth.text.erb b/app/views/rodauth_mailer/email_auth.text.erb
new file mode 100644
index 0000000..9b989fe
--- /dev/null
+++ b/app/views/rodauth_mailer/email_auth.text.erb
@@ -0,0 +1,5 @@
+Someone has requested a login link for the account with this email
+address. If you did not request a login link, please ignore this
+message. If you requested a login link, please go to
+<%= @rodauth.email_auth_email_link %>
+to login to this account.
diff --git a/app/views/rodauth_mailer/password_changed.text.erb b/app/views/rodauth_mailer/password_changed.text.erb
new file mode 100644
index 0000000..2e48708
--- /dev/null
+++ b/app/views/rodauth_mailer/password_changed.text.erb
@@ -0,0 +1,2 @@
+Someone (hopefully you) has changed the password for the account
+associated to this email address.
diff --git a/app/views/rodauth_mailer/reset_password.text.erb b/app/views/rodauth_mailer/reset_password.text.erb
new file mode 100644
index 0000000..fcfb698
--- /dev/null
+++ b/app/views/rodauth_mailer/reset_password.text.erb
@@ -0,0 +1,5 @@
+Someone has requested a password reset for the account with this email
+address. If you did not request a password reset, please ignore this
+message. If you requested a password reset, please go to
+<%= @rodauth.reset_password_email_link %>
+to reset the password for the account.
diff --git a/app/views/rodauth_mailer/unlock_account.text.erb b/app/views/rodauth_mailer/unlock_account.text.erb
new file mode 100644
index 0000000..3d24759
--- /dev/null
+++ b/app/views/rodauth_mailer/unlock_account.text.erb
@@ -0,0 +1,5 @@
+Someone has requested that the account with this email be unlocked.
+If you did not request the unlocking of this account, please ignore this
+message. If you requested the unlocking of this account, please go to
+<%= @rodauth.unlock_account_email_link %>
+to unlock this account.
diff --git a/app/views/rodauth_mailer/verify_account.text.erb b/app/views/rodauth_mailer/verify_account.text.erb
new file mode 100644
index 0000000..78ff6ad
--- /dev/null
+++ b/app/views/rodauth_mailer/verify_account.text.erb
@@ -0,0 +1,4 @@
+Someone has created an account with this email address. If you did not create
+this account, please ignore this message. If you created this account, please go to
+<%= @rodauth.verify_account_email_link %>
+to verify the account.
diff --git a/app/views/rodauth_mailer/verify_login_change.text.erb b/app/views/rodauth_mailer/verify_login_change.text.erb
new file mode 100644
index 0000000..693680b
--- /dev/null
+++ b/app/views/rodauth_mailer/verify_login_change.text.erb
@@ -0,0 +1,10 @@
+Someone with an account has requested their login be changed to this email address:
+
+Old email: <%= @account.email %>
+
+New email: <%= @new_email %>
+
+If you did not request this login change, please ignore this message. If you
+requested this login change, please go to
+<%= @rodauth.verify_login_change_email_link %>
+to verify the login change.