OSDN Git Service

clean
[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 => @operators.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 => @operators.user %>
10       <h2><%= t 'home.configure.token_caption' -%></h2>
11       <% if @operators.user.authentication_token %>
12         <div><%= t 'home.configure.your_token', :token => @operators.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       <% unless @operators.author %>
24         <div><%= t 'home.configure.no_author' -%></div>
25         <div><%= t 'home.configure.about_author' -%></div>
26       <% end %>
27         <%= render @author_form.template_name, :form => @author_form %>
28       <h2><%= t_m 'Artist' -%></h2>
29       <% unless @operators.artist %>
30         <div><%= t 'home.configure.no_artist' -%></div>
31         <div><%= t 'home.configure.about_artist' -%></div>
32       <% end %>
33       <%= render @artist_form.template_name, :form => @artist_form %>
34     </td>
35   </tr>
36 </table>