Revision 912:5e80956cc792 .svn/pristine/17

View differences:

.svn/pristine/17/175ce98d0f45b612d93a4554fb4f76c1be18c0ff.svn-base
1
#!/usr/bin/env ruby
2
require File.expand_path('../../../config/boot',  __FILE__)
3
require 'commands/performance/benchmarker'
.svn/pristine/17/17973741c668d43d267b734fcb018ab64a0d87f9.svn-base
1
<h2><%= l(:label_plugins) %></h2>
2

  
3
<% if @plugins.any? %>
4
<table class="list plugins">
5
    <% @plugins.each do |plugin| %>
6
        <tr class="<%= cycle('odd', 'even') %>">
7
        <td><span class="name"><%=h plugin.name %></span>
8
            <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %>
9
            <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %>
10
        </td>
11
        <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td>
12
        <td class="version"><%=h plugin.version %></td>
13
        <td class="configure"><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %></td>
14
        </tr>
15
    <% end %>
16
</table>
17
<% else %>
18
<p class="nodata"><%= l(:label_no_data) %></p>
19
<% end %>
.svn/pristine/17/17c033d2aba8bd48a0c5240eb040a0c6c95834ea.svn-base
1
class IssueMove < ActiveRecord::Migration
2
  # model removed
3
  class Permission < ActiveRecord::Base; end
4

  
5
  def self.up
6
    Permission.create :controller => "projects", :action => "move_issues", :description => "button_move", :sort => 1061, :mail_option => 0, :mail_enabled => 0
7
  end
8

  
9
  def self.down
10
    Permission.find(:first, :conditions => ["controller=? and action=?", 'projects', 'move_issues']).destroy
11
  end
12
end
.svn/pristine/17/17c53021398a51ccae878d86cdd4f0a66880e996.svn-base
1
class AddCommentsPermissions < ActiveRecord::Migration
2
  # model removed
3
  class Permission < ActiveRecord::Base; end
4

  
5
  def self.up
6
    Permission.create :controller => "news", :action => "add_comment", :description => "label_comment_add", :sort => 1130, :is_public => false, :mail_option => 0, :mail_enabled => 0
7
    Permission.create :controller => "news", :action => "destroy_comment", :description => "label_comment_delete", :sort => 1133, :is_public => false, :mail_option => 0, :mail_enabled => 0
8
  end
9

  
10
  def self.down
11
    Permission.find(:first, :conditions => ["controller=? and action=?", 'news', 'add_comment']).destroy
12
    Permission.find(:first, :conditions => ["controller=? and action=?", 'news', 'destroy_comment']).destroy
13
  end
14
end
.svn/pristine/17/17d43ea055a7a8001dad09ba9decc118c095d5fe.svn-base
1
<% labelled_tabular_form_for :issue, @issue,
2
                             :url => {:action => 'update', :id => @issue},
3
                             :html => {:id => 'issue-form',
4
                                       :class => nil,
5
                                       :method => :put,
6
                                       :multipart => true} do |f| %>
7
    <%= error_messages_for 'issue', 'time_entry' %>
8
    <div class="box">
9
    <% if @edit_allowed || !@allowed_statuses.empty? %>
10
        <fieldset class="tabular"><legend><%= l(:label_change_properties) %>
11
        <% if !@issue.new_record? && !@issue.errors.any? && @edit_allowed %>
12
        <small>(<%= link_to l(:label_more), {}, :onclick => 'Effect.toggle("issue_descr_fields", "appear", {duration:0.3}); return false;' %>)</small>
13
        <% end %>
14
        </legend>
15
        <%= render :partial => (@edit_allowed ? 'form' : 'form_update'), :locals => {:f => f} %>
16
        </fieldset>
17
    <% end %>
18
    <% if User.current.allowed_to?(:log_time, @project) %>
19
        <fieldset class="tabular"><legend><%= l(:button_log_time) %></legend>
20
        <% fields_for :time_entry, @time_entry, { :builder => TabularFormBuilder, :lang => current_language} do |time_entry| %>
21
        <div class="splitcontentleft">
22
        <p><%= time_entry.text_field :hours, :size => 6, :label => :label_spent_time %> <%= l(:field_hours) %></p>
23
        </div>
24
        <div class="splitcontentright">
25
        <p><%= time_entry.select :activity_id, activity_collection_for_select_options %></p>
26
        </div>
27
        <p><%= time_entry.text_field :comments, :size => 60 %></p>
28
        <% @time_entry.custom_field_values.each do |value| %>
29
          <p><%= custom_field_tag_with_label :time_entry, value %></p>
30
        <% end %>
31
        <% end %>
32
    </fieldset>
33
    <% end %>
34

  
35
    <fieldset><legend><%= l(:field_notes) %></legend>
36
    <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
37
    <%= wikitoolbar_for 'notes' %>
38
    <%= call_hook(:view_issues_edit_notes_bottom, { :issue => @issue, :notes => @notes, :form => f }) %>
39

  
40
    <p><%=l(:label_attachment_plural)%><br /><%= render :partial => 'attachments/form' %></p>
41
    </fieldset>
42
    </div>
43

  
44
    <%= f.hidden_field :lock_version %>
45
    <%= submit_tag l(:button_submit) %>
46
    <%= link_to_remote l(:label_preview),
47
                       { :url => preview_issue_path(:project_id => @project, :id => @issue),
48
                         :method => 'post',
49
                         :update => 'preview',
50
                         :with => 'Form.serialize("issue-form")',
51
                         :complete => "Element.scrollTo('preview')"
52
                       }, :accesskey => accesskey(:preview) %>
53
<% end %>
54

  
55
<div id="preview" class="wiki"></div>
.svn/pristine/17/17e6519b50da04ce88ce18f460d2215c425cc034.svn-base
1
<div id="assets_layout">
2
	<%= yield %>
3
</div>
.svn/pristine/17/17f362b58e5928588fba117c59a1faaa4e2cd401.svn-base
1
jsToolBar.strings = {};
2
jsToolBar.strings['Strong'] = 'Negriña';
3
jsToolBar.strings['Italic'] = 'Itálica';
4
jsToolBar.strings['Underline'] = 'Suliñado';
5
jsToolBar.strings['Deleted'] = 'Tachado';
6
jsToolBar.strings['Code'] = 'Código fonte';
7
jsToolBar.strings['Heading 1'] = 'Encabezado 1';
8
jsToolBar.strings['Heading 2'] = 'Encabezado 2';
9
jsToolBar.strings['Heading 3'] = 'Encabezado 3';
10
jsToolBar.strings['Unordered list'] = 'Lista sen ordenar';
11
jsToolBar.strings['Ordered list'] = 'Lista ordenada';
12
jsToolBar.strings['Quote'] = 'Citar';
13
jsToolBar.strings['Unquote'] = 'Quitar cita';
14
jsToolBar.strings['Preformatted text'] = 'Texto con formato';
15
jsToolBar.strings['Wiki link'] = 'Enlace a páxina Wiki';
16
jsToolBar.strings['Image'] = 'Imaxe';
.svn/pristine/17/17f782f3ce13f8d3847651a0f8efc45b475de826.svn-base
1
# Sample plugin
2
en:
3
  label_plugin_example: Sample Plugin
4
  label_meeting_plural: Meetings
5
  text_say_hello: Plugin say 'Hello'
6
  text_say_goodbye: Plugin say 'Good bye'

Also available in: Unified diff