Skip to content
Browse files

Prepared i18n

  • Loading branch information...
1 parent de008bb commit 60b1ffdbacd2523553408811acef11e693a498ca @untoldwind committed Apr 22, 2010
View
38 app/views/gitosis_public_keys/.tmp_index.html.erb.49828~
@@ -0,0 +1,38 @@
+<h2><%= link_to l(:label_my_account), :controller => 'my', :action => 'account' %> &#187; <%=l(:label_public_keys)%></h2>
+
+<% form_tag({}, :method => :get) do %>
+<fieldset><legend><%= l(:label_filter_plural) %></legend>
+<label><%= l(:field_status) %>:</label>
+<%= select_tag 'status', gitosis_public_keys_status_options_for_select(@user, @status), :class => "small", :onchange => "this.form.submit(); return false;" %>
+<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
+</fieldset>
+<% end %>
+&nbsp;
+
+
+<% if @gitosis_public_keys.any? %>
+
+ <table class="list">
+ <tr>
+ <th><%= l(:field_name) %></th>
+ <th><%= l(:field_created_on) %></th>
+ <th style="width:15%;"><%= l(:field_active) %></th>
+ <th align="center" style="width:10%;"> </th>
+ </tr>
+ <% @gitosis_public_keys.each do |key| %>
+ <tr class="<%= cycle('odd', 'even') %>">
+ <td><%= link_to h(key), :action => 'edit', :id => key %></td>
+ <td><%= format_time(key.created_at) %></td>
+ <td class="center" style="width:15%;"><%= image_tag('true.png') if key.active? %></td>
+ <td class="buttons">
+ <%= link_to l(key.active? ? :button_lock : :button_unlock), public_key_path(key, :public_key => {:active => key.active? ? GitosisPublicKey::STATUS_LOCKED : GitosisPublicKey::STATUS_ACTIVE}), :method => :put, :class => "icon #{key.active? ? 'icon-lock' : 'icon-unlock'}" %>
+ </td>
+ </tr>
+ <% end %>
+ </table>
+
+<% end %>
+
+<p><%= link_to l(:label_enumeration_new), { :action => 'new'} %></p>
+
+<% html_title(l(:label_public_keys)) -%>
View
8 app/views/projects/.tmp__redmine_gitosis.rhtml.10033~
@@ -1,8 +0,0 @@
-<% if @project.repository && @project.repository.is_a?(Repository::Git) %>
-<div class="box">
- <h3>Git Repository</h3>
- <ul>
- <li>Developer URL: <%= Setting.plugin_redmine_gitosis['developerBaseUrl'] + @project.identifier %>.git</li>
- </ul>
-</div>
-<% end %>
View
0 app/views/projects/.tmp__redmine_gitosis.rhtml.32229~
No changes.
View
3 app/views/repositories/.tmp_git_instructions.html.erb.16899~
@@ -1,3 +0,0 @@
-<h2><%= l(:label_repository)%></h2>
-<%# This can be used to display basic git setup instructions, like on github... %>
-<% html_title(l(:label_repository)) -%>
View
0 ...ttings/.tmp__redmine_gitosis.rhtml.89749~ → ...ttings/.tmp__redmine_gitosis.rhtml.13736~
File renamed without changes.
View
5 app/views/settings/.tmp__redmine_gitosis.rhtml.14123~
@@ -1,5 +0,0 @@
-<div class="box tabular settings">
-<p>Uri: <%= text_field_tag("settings[uri]", settings['uri'], :size => 60) %><br />
-<p>Base path: <%= text_field_tag("settings[basePath]", settings['basePath'], :size => 60) %><br />
-
-</div>
View
8 app/views/settings/_redmine_gitosis.rhtml
@@ -1,6 +1,6 @@
<div class="box tabular settings">
-<p><label>Gitosi URL</label> <%= text_field_tag("settings[gitosisUrl]", settings['gitosisUrl'], :size => 60) %><br />
-<p><label>Gitosi identity file</label> <%= text_field_tag("settings[gitosisIdentityFile]", settings['gitosisIdentityFile'], :size => 60) %><br />
-<p><label>Base path</label> <%= text_field_tag("settings[basePath]", settings['basePath'], :size => 60) %><br />
-<p><label>Developer base URL</label> <%= text_field_tag("settings[developerBaseUrl]", settings['developerBaseUrl'], :size => 60) %><br />
+<p><label><%= l(:label_gitosis_url)%></label> <%= text_field_tag("settings[gitosisUrl]", settings['gitosisUrl'], :size => 60) %><br />
+<p><label><%= l(:label_gitosis_identity_file)%></label> <%= text_field_tag("settings[gitosisIdentityFile]", settings['gitosisIdentityFile'], :size => 60) %><br />
+<p><label><%= l(:label_base_path)%></label> <%= text_field_tag("settings[basePath]", settings['basePath'], :size => 60) %><br />
+<p><label><%= l(:label_developer_base_path)%></label> <%= text_field_tag("settings[developerBaseUrl]", settings['developerBaseUrl'], :size => 60) %><br />
</div>
View
4 config/locales/en.yml
@@ -1,6 +1,10 @@
en:
label_public_keys: Public keys
label_public_key_new: New public key
+ label_gitosis_url: Gitosi URL
+ label_gitosis_identity_file: Gitosi identity file
+ label_base_path: Base path
+ label_developer_base_path: Developer base URL
field_public_key: Key
notice_public_key_updated: Public key was successfully updated.
notice_public_key_added: Public key was successfully added.
View
2 init.rb
@@ -9,7 +9,7 @@
name 'Redmine Gitosis plugin'
author 'Jan Schulz-Hofen'
description 'Enables Redmine to update a gitosis server.'
- version '0.0.2'
+ version '0.0.3'
settings :default => {
'gitosisUrl' => 'git@localhost:gitosis-admin.git',
'gitosisIdentityFile' => '/opt/redmine/.ssh/id_rsa',

0 comments on commit 60b1ffd

Please sign in to comment.
Something went wrong with that request. Please try again.