page titles

This commit is contained in:
jomo
2014-06-16 00:05:09 +02:00
parent 19eb868a50
commit 03efb744d1
29 changed files with 60 additions and 19 deletions

View File

@@ -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 %>

View File

@@ -1,3 +1,5 @@
<% title "Edit User: #{@user.name}" %>
<%
def can_edit?
(@user.is?(current_user) && confirmed?) || (mod? && current_user.role >= @user.role)

View File

@@ -1,3 +1,5 @@
<% title "Edit Login Credentials: #{@user.name}" %>
<%= link_to @user.name, @user %> → Edit Login credentials
<h1>Edit Login credentials</h1>

View File

@@ -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| %>

View File

@@ -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>

View File

@@ -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>