From 332ec93366315fa1ed7b4acd7a3407c96e8ddfa7 Mon Sep 17 00:00:00 2001 From: sadbeast Date: Wed, 31 Jan 2024 17:47:56 -0800 Subject: initial mistake --- app/views/layouts/application.html.erb | 25 ++++++++++++++++ app/views/layouts/mailer.html.erb | 13 +++++++++ app/views/layouts/mailer.text.erb | 1 + app/views/leagues/index.html.erb | 3 ++ app/views/leagues/show.html.erb | 33 ++++++++++++++++++++++ app/views/rodauth_mailer/email_auth.text.erb | 5 ++++ app/views/rodauth_mailer/password_changed.text.erb | 2 ++ app/views/rodauth_mailer/reset_password.text.erb | 5 ++++ app/views/rodauth_mailer/unlock_account.text.erb | 5 ++++ app/views/rodauth_mailer/verify_account.text.erb | 4 +++ .../rodauth_mailer/verify_login_change.text.erb | 10 +++++++ 11 files changed, 106 insertions(+) create mode 100644 app/views/layouts/application.html.erb create mode 100644 app/views/layouts/mailer.html.erb create mode 100644 app/views/layouts/mailer.text.erb create mode 100644 app/views/leagues/index.html.erb create mode 100644 app/views/leagues/show.html.erb create mode 100644 app/views/rodauth_mailer/email_auth.text.erb create mode 100644 app/views/rodauth_mailer/password_changed.text.erb create mode 100644 app/views/rodauth_mailer/reset_password.text.erb create mode 100644 app/views/rodauth_mailer/unlock_account.text.erb create mode 100644 app/views/rodauth_mailer/verify_account.text.erb create mode 100644 app/views/rodauth_mailer/verify_login_change.text.erb (limited to 'app/views') 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 @@ + + + + Team Draft + + <%= csrf_meta_tags %> + <%= csp_meta_tag %> + + <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> + <%= javascript_importmap_tags %> + + + + +
+ <%= yield %> +
+ + 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 @@ + + + + + + + + + <%= yield %> + + 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| %> +

<%= link_to league.name, league_path(league) %>

+<% 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 @@ +
+<% @player_scores.each do |score| %> +
<%= score.player %> - <%= score.score %>
+<% end %> +
+ + + + + + + + + + <% @scores.each do |score| %> + + + + + + <% end %> + +
<%= sort_link(@q, :team) %><%= sort_link(@q, :player) %><%= sort_link(@q, :total) %>
<%= score.team %><%= score.player %> + <%= score.total %> +

+ W: <%= score.win %> + <% if score.playoffs > 0 %>P: <%= score.playoffs %><% end %> + <% if score.divisional > 0 %>D: <%= score.divisional %><% end %> + <% if score.conference > 0 %>C: <%= score.conference %><% end %> + <% if score.superbowl > 0 %>S: <%= score.superbowl %><% end %> + <% if score.champion > 0 %>SW: <%= score.champion %><% end %> +

+
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. -- cgit v1.2.3