diff options
| author | rubenwardy <rw@rubenwardy.com> | 2019-11-15 23:51:42 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2019-11-15 23:51:42 +0000 |
| commit | 64f131ae27a7332245b5a4eb8e1e4879d7d99578 (patch) | |
| tree | a0b4101ca9c2132a072f1586c0df693583c91cf7 /app/templates/users | |
| parent | 015abe5a2507ad02273bc89953016c386aae4457 (diff) | |
| download | cheatdb-64f131ae27a7332245b5a4eb8e1e4879d7d99578.tar.xz | |
Refactor endpoints to use blueprints instead
Diffstat (limited to 'app/templates/users')
| -rw-r--r-- | app/templates/users/claim.html | 6 | ||||
| -rw-r--r-- | app/templates/users/list.html | 2 | ||||
| -rw-r--r-- | app/templates/users/user_profile_page.html | 10 |
3 files changed, 9 insertions, 9 deletions
diff --git a/app/templates/users/claim.html b/app/templates/users/claim.html index db00d3f..ab66349 100644 --- a/app/templates/users/claim.html +++ b/app/templates/users/claim.html @@ -19,7 +19,7 @@ Creating an Account Please log out to continue. </p> <p> - <a href="{{ url_for('user.logout', next=url_for('user_claim_page')) }}" class="btn">Logout</a> + <a href="{{ url_for('user.logout', next=url_for('users.claim')) }}" class="btn">Logout</a> </p> {% else %} <p> @@ -44,7 +44,7 @@ Creating an Account Use GitHub field in forum profile </div> - <form method="post" class="card-body" action="{{ url_for('user_claim_page') }}"> + <form method="post" class="card-body" action="{{ url_for('users.claim') }}"> <input class="form-control" type="hidden" name="claim_type" value="github"> <input class="form-control" type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> @@ -73,7 +73,7 @@ Creating an Account Verification token </div> - <form method="post" class="card-body" action="{{ url_for('user_claim_page') }}"> + <form method="post" class="card-body" action="{{ url_for('users.claim') }}"> <input type="hidden" name="claim_type" value="forum"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> diff --git a/app/templates/users/list.html b/app/templates/users/list.html index 5ec5662..345a039 100644 --- a/app/templates/users/list.html +++ b/app/templates/users/list.html @@ -8,7 +8,7 @@ <ul class="userlist"> {% for user in users %} <li class="{{ user.rank }}"> - <a href="{{ url_for('user_profile_page', username=user.username) }}"> + <a href="{{ url_for('users.profile', username=user.username) }}"> {{ user.display_name }} </a> - {{ user.rank.getTitle() }} diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index fc197e8..d1edf54 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -9,7 +9,7 @@ {% if not current_user.is_authenticated and user.rank == user.rank.NOT_JOINED and user.forums_username %} <div class="alert alert-info"> <a class="float-right btn btn-default btn-sm" - href="{{ url_for('user_claim_page', username=user.forums_username) }}">Claim</a> + href="{{ url_for('users.claim', username=user.forums_username) }}">Claim</a> Is this you? Claim your account now! </div> @@ -57,7 +57,7 @@ {% if user.github_username %} <a href="https://github.com/{{ user.github_username }}">GitHub</a> {% elif user == current_user %} - <a href="{{ url_for('github_signin_page') }}">Link Github</a> + <a href="{{ url_for('users.github_signin') }}">Link Github</a> {% endif %} {% if user.website_url %} @@ -78,7 +78,7 @@ <td>Admin</td> <td> {% if user.email %} - <a class="btn btn-primary" href="{{ url_for('send_email_page', username=user.username) }}"> + <a class="btn btn-primary" href="{{ url_for('users.send_email', username=user.username) }}"> Email </a> {% else %} @@ -97,7 +97,7 @@ <td>Profile Picture:</td> <td> {% if user.forums_username %} - <form method="post" action="{{ url_for('user_check', username=user.username) }}" class="" style="display:inline-block;"> + <form method="post" action="{{ url_for('users.user_check', username=user.username) }}" class="" style="display:inline-block;"> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="submit" class="btn btn-primary" value="Sync with Forums" /> </form> @@ -122,7 +122,7 @@ {% if user.password %} Set | <a href="{{ url_for('user.change_password') }}">Change</a> {% else %} - Not set | <a href="{{ url_for('set_password_page') }}">Set</a> + Not set | <a href="{{ url_for('users.set_password') }}">Set</a> {% endif %} </td> </tr> |
