page titles
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
<h1>Change password</h1>
|
||||
<% title "Change Password" %>
|
||||
|
||||
<h1>Change password</h1>
|
||||
|
||||
<%= form_for @user do |f| %>
|
||||
<%= f.text_field :current_password %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% title "Edit User: #{@user.name}" %>
|
||||
|
||||
<%
|
||||
def can_edit?
|
||||
(@user.is?(current_user) && confirmed?) || (mod? && current_user.role >= @user.role)
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% title "Edit Login Credentials: #{@user.name}" %>
|
||||
|
||||
<%= link_to @user.name, @user %> → Edit Login credentials
|
||||
<h1>Edit Login credentials</h1>
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<% if params[:role] %>
|
||||
<h1>All '<%= params[:role] %>' users</h1>
|
||||
<h1><%= title "All '#{params[:role]}' Users" %></h1>
|
||||
<%= link_to "show all", users_path %>
|
||||
<% else %>
|
||||
<h1> All users </h1>
|
||||
<h1><%= title "All Users" %></h1>
|
||||
<% end %>
|
||||
<div id="userlist">
|
||||
<% @users.each do |u| %>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% title "Sign up" %>
|
||||
|
||||
<h1>Sign up</h1>
|
||||
|
||||
<p>To get your <i>token</i>, join the Minecraft server (redstoner.com) and use the <mark>/token</mark> command.</p>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<% title @user.name %>
|
||||
|
||||
<div id="user-info">
|
||||
<% if @user.is?(current_user) || (mod? && current_user.role >= @user.role) %>
|
||||
<div class="profile-action" ><%= link_to "edit profile", edit_user_path(@user), :class => "btn blue" %></div>
|
||||
|
||||
Reference in New Issue
Block a user