mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 02:44:22 +01:00
Changed code to support basic i18n.
Added RubyMine configuration and rvm setup to .gitignore.
This commit is contained in:
parent
04faa5d408
commit
fd3f69d927
99 changed files with 1157 additions and 601 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<h2>Active projects</h2><%=
|
||||
<h2><%= t('projects.active_projects') %></h2><%=
|
||||
render :partial => 'mobile_project_listing', :collection => @active_projects%>
|
||||
<h2>Hidden projects</h2><%=
|
||||
<h2><%= t('projects.hidden_projects') %></h2><%=
|
||||
render :partial => 'mobile_project_listing', :collection => @hidden_projects %>
|
||||
<h2>Completed projects</h2><%=
|
||||
<h2><%= t('projects.completed_projects') %></h2><%=
|
||||
render :partial => 'mobile_project_listing', :collection => @completed_projects %>
|
||||
|
|
@ -5,23 +5,23 @@
|
|||
<div class="project_description"><%= sanitize(@project.description) %></div>
|
||||
<% end -%>
|
||||
<%= render :partial => "todos/mobile_todo", :collection => @not_done, :locals => { :parent_container_type => "project" }%>
|
||||
<h2>Deferred actions for this project</h2>
|
||||
<h2><%= t('projects.deferred_actions')%></h2>
|
||||
<% if @deferred.empty? -%>
|
||||
There are no deferred actions for this project
|
||||
<%= t('projects.deferred_actions_empty') %>
|
||||
<% else -%>
|
||||
<%= render :partial => "todos/mobile_todo", :collection => @deferred, :locals => { :parent_container_type => "project" }%>
|
||||
<% end
|
||||
-%>
|
||||
<h2>Completed actions for this project</h2>
|
||||
<h2><%= t('projects.completed_actions')%></h2>
|
||||
<% if @done.empty? -%>
|
||||
There are no completed actions for this project
|
||||
<%= t('projects.completed_actions_empty') %>
|
||||
<% else -%>
|
||||
<%= render :partial => "todos/mobile_todo", :collection => @done, :locals => { :parent_container_type => "project" }%>
|
||||
<% end %>
|
||||
<h2>Notes</h2>
|
||||
<h2><%= t('projects.notes') %></h2>
|
||||
<% if @project.notes.empty? -%>
|
||||
There are no notes for this project
|
||||
<%= t('projects.notes_empty') %>
|
||||
<% else -%><%= render :partial => "notes/mobile_notes_summary", :collection => @project.notes %>
|
||||
<% end -%>
|
||||
<h2>Settings</h2>
|
||||
This project is <%= project.current_state.to_s %>. <%= @project_default_context %>
|
||||
<h2><%= t('projects.settings') %></h2>
|
||||
<%= t('projects.state', :state => project.current_state.to_s) %>. <%= @project_default_context %>
|
||||
|
|
@ -4,18 +4,18 @@
|
|||
</div>
|
||||
|
||||
<%= render :partial => "projects/project", :locals => { :project => @project, :collapsible => false } %>
|
||||
<%= render :partial => "todos/deferred", :locals => { :deferred => @deferred, :collapsible => false, :append_descriptor => "in this project", :parent_container_type => 'project', :pending => @pending } %>
|
||||
<%= render :partial => "todos/deferred", :locals => { :deferred => @deferred, :collapsible => false, :append_descriptor => t('projects.todos_append'), :parent_container_type => 'project', :pending => @pending } %>
|
||||
<% unless @max_completed==0 -%>
|
||||
<%= render :partial => "todos/completed", :locals => { :done => @done, :collapsible => false, :suppress_project => true, :append_descriptor => "in this project" } %>
|
||||
<%= render :partial => "todos/completed", :locals => { :done => @done, :collapsible => false, :suppress_project => true, :append_descriptor => t('projects.todos_append') } %>
|
||||
<% end -%>
|
||||
|
||||
<div class="container">
|
||||
<div id="notes">
|
||||
<div class="add_note_link"><%= link_to 'Add a note', '#' %> </div>
|
||||
<div class="add_note_link"><%= link_to t('projects.add_note'), '#' %> </div>
|
||||
<h2>Notes</h2>
|
||||
<div id="empty-n" style="display:<%= @project.notes.empty? ? 'block' : 'none'%>;">
|
||||
<%= render :partial => "shared/empty",
|
||||
:locals => { :message => "Currently there are no notes attached to this project"} %>
|
||||
:locals => { :message => t('projects.no_notes_attached')} %>
|
||||
</div>
|
||||
<%= render :partial => "notes/notes_summary", :collection => @project.notes %>
|
||||
</div>
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<%= hidden_field( "note", "project_id", "value" => "#{@project.id}" ) %>
|
||||
<%= text_area( "note", "body", "cols" => 50, "rows" => 3, "tabindex" => 1 ) %>
|
||||
<br /><br />
|
||||
<input type="submit" value="Add note" name="add-new-note" tabindex="2" />
|
||||
<input type="submit" value="<%= t('projects.add_note_submit') %>" name="add-new-note" tabindex="2" />
|
||||
<% end -%>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
if @saved
|
||||
status_message = 'Project saved'
|
||||
status_message = t('projects.project_saved_status')
|
||||
page.notify :notice, status_message, 5.0
|
||||
if source_view_is :project_list
|
||||
if @state_changed
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
if @project.default_context.nil?
|
||||
page.notify :notice, "Removed default context", 5.0
|
||||
page.notify :notice, t('projects.default_context_removed'), 5.0
|
||||
else
|
||||
if source_view_is :project
|
||||
page['default_context_name_id'].value = @project.default_context.name
|
||||
page['todo_context_name'].value = @project.default_context.name
|
||||
end
|
||||
page.notify :notice, "Set project's default context to #{@project.default_context.name}", 5.0
|
||||
page.notify :notice, t('projects.default_context_set', :default_context => @project.default_context.name), 5.0
|
||||
end
|
||||
page.hide "busy"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
if @project.default_tags.nil?
|
||||
page.notify :notice, "Removed the default tags", 5.0
|
||||
page.notify :notice, t('projects.default_tags_removed_notice'), 5.0
|
||||
else
|
||||
# if source_view_is :project
|
||||
# page['default_context_name_id'].value = @project.default_context.name
|
||||
# page['todo_context_name'].value = @project.default_context.name
|
||||
# end
|
||||
page.notify :notice, "Set project's default tags to #{@project.default_tags}", 5.0
|
||||
page.notify :notice, t('projects.set_default_tags_notice', :default_tags => @project.default_tags), 5.0
|
||||
end
|
||||
page.hide "busy"
|
||||
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ page['todo_project_name'].value = @project.name
|
|||
|
||||
page << "enable_rich_interaction();"
|
||||
|
||||
status_message = "Name of project was changed"
|
||||
status_message = t('projects.status_project_name_changed')
|
||||
page.notify :notice, status_message, 5.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue