add userboxes and use them instead of flash
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
<p>This cannot be undone. This will not delete your posts, only anonymize them.</p>
|
||||
<p>If you are sure, please type your password below.</p>
|
||||
|
||||
<% if err then %>
|
||||
<h2><%= err %></h2>
|
||||
<% if infobox then %>
|
||||
<% render("views.common.infobox", infobox) %>
|
||||
<% end %>
|
||||
|
||||
<form method="post" action="<%= url_for("user_delete", {username = me.username}) %>">
|
||||
|
@ -1,8 +1,8 @@
|
||||
<% render("views.common.topnav") -%>
|
||||
<div class="darkbg login-container">
|
||||
<h1>Log In</h1>
|
||||
<% if err then %>
|
||||
<h2><%= err %></h2>
|
||||
<% if infobox then %>
|
||||
<% render("views.common.infobox", infobox) %>
|
||||
<% end %>
|
||||
<form method="post" action="<%= url_for('user_login') %>" enctype="multipart/form-data">
|
||||
<label for="username">Username</label><br>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<% render("views.common.topnav") -%>
|
||||
<div class="darkbg settings-container">
|
||||
<h1>User settings</h1>
|
||||
<% if flash_msg then %>
|
||||
<h2><%= flash_msg %></h2>
|
||||
<% if infobox then %>
|
||||
<% render("views.common.infobox", infobox) %>
|
||||
<% end %>
|
||||
<form class="avatar-form" method="post" action="<%= url_for("user_set_avatar", {username = me.username}) %>" enctype="multipart/form-data">
|
||||
<img src="<%= avatar_url(me) %>">
|
||||
@ -10,7 +10,7 @@
|
||||
<div>
|
||||
<input type="submit" value="Update avatar">
|
||||
<% if not me:is_default_avatar() then %>
|
||||
<input type="submit" value="Clear avatar" formaction="<%= url_for("user_clear_avatar", {username = me.username}) %>">
|
||||
<input type="submit" value="Clear avatar" formaction="<%= url_for("user_clear_avatar", {username = me.username}) %>" formnovalidate>
|
||||
<% end %>
|
||||
</div>
|
||||
</form>
|
||||
|
@ -1,8 +1,8 @@
|
||||
<% render("views.common.topnav") -%>
|
||||
<div class="darkbg login-container">
|
||||
<h1>Sign up</h1>
|
||||
<% if err then %>
|
||||
<h2><%= err %></h2>
|
||||
<% if infobox then %>
|
||||
<% render("views.common.infobox", infobox) %>
|
||||
<% end %>
|
||||
<form method="post" action="<%= url_for('user_signup') %>" enctype="multipart/form-data">
|
||||
<label for="username">Username</label><br>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<% if just_logged_in then %>
|
||||
<h1>Logged in successfully.</h1>
|
||||
<% end %>
|
||||
<% render("views.common.topnav") -%>
|
||||
<% if infobox then %>
|
||||
<% render("views.common.infobox", pop_infobox) %>
|
||||
<% end %>
|
||||
<div class="darkbg">
|
||||
<h1 class="thread-title">Latest posts by <i><%= user.username %></i></h1>
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user