OSDN Git Service

t#30143:au and ar change
[pettanr/pettanr.git] / app / views / home / configure.html.erb
1 <h1><%= t '.title' -%></h1>
2 <p id="notice"><%= notice %></p>
3
4 <%= t('home.configure.caption', :email => @user.email) %>
5 <table class="no-border" width="100%">
6   <tr>
7     <td width="70%">
8       <h2><%= t 'home.configure.password_caption' -%></h2>
9       <%= render '/users/registrations/form', :resource => @user %>
10       <h2><%= t 'home.configure.token_caption' -%></h2>
11       <% if @user.authentication_token %>
12         <div><%= t 'home.configure.your_token', :token => @user.authentication_token -%></div>
13         <%= link_to t('home.configure.delete_token'), :action => :delete_token %>
14       <% else %>
15         <div><%= t 'home.configure.about_token' -%></div>
16         <%= link_to t('home.configure.generate_token'), :action => :create_token %>
17       <% end %>
18       <h2><%= t 'home.configure.cancel_caption' -%></h2>
19       <%= link_to t('home.configure.cancel_account'), registration_path('user'), :confirm => "Are you sure?", :method => :delete %>
20     </td>
21     <td width="30%">
22       <h2><%= t_m 'Author' -%></h2>
23       <% if @author %>
24         <%= render '/authors/form', :au => @author %>
25       <% else %>
26         <div><%= t 'home.configure.no_author' -%></div>
27         <div><%= t 'home.configure.about_author' -%></div>
28         <% @au = Author.new ; @au.supply_default %>
29         <%= render '/authors/form', :au => @au %>
30       <% end %>
31       <h2><%= t_m 'Artist' -%></h2>
32       <% if @artist %>
33         <%= render '/artists/form', :ar => @artist %>
34       <% else %>
35         <div><%= t 'home.configure.no_artist' -%></div>
36         <div><%= t 'home.configure.about_artist' -%></div>
37         <% @ar = Artist.new ; @ar.supply_default %>
38         <%= render '/artists/form', :ar => @ar %>
39       <% end %>
40     </td>
41   </tr>
42 </table>