mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-29 12:16:11 +01:00
get login, mobile and notes features passing
This commit is contained in:
parent
7c935652fb
commit
005723cb4f
52 changed files with 167 additions and 196 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<% project = mobile_project_listing -%>
|
||||
<div id="pjr"><%=
|
||||
<% project = project_listing -%>
|
||||
<div id="pjr"><%=
|
||||
link_to(project.name, project_path(project, :format => 'm')) +
|
||||
" (" + count_undone_todos_and_notes_phrase(project) + ")" %></div>
|
||||
6
app/views/projects/index.m.erb
Normal file
6
app/views/projects/index.m.erb
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<h2><%= t('projects.active_projects') %></h2><%=
|
||||
render :partial => 'project_listing', :collection => @active_projects%>
|
||||
<h2><%= t('projects.hidden_projects') %></h2><%=
|
||||
render :partial => 'project_listing', :collection => @hidden_projects %>
|
||||
<h2><%= t('projects.completed_projects') %></h2><%=
|
||||
render :partial => 'project_listing', :collection => @completed_projects %>
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
<h2><%= t('projects.active_projects') %></h2><%=
|
||||
render :partial => 'mobile_project_listing', :collection => @active_projects%>
|
||||
<h2><%= t('projects.hidden_projects') %></h2><%=
|
||||
render :partial => 'mobile_project_listing', :collection => @hidden_projects %>
|
||||
<h2><%= t('projects.completed_projects') %></h2><%=
|
||||
render :partial => 'mobile_project_listing', :collection => @completed_projects %>
|
||||
|
|
@ -5,33 +5,27 @@
|
|||
<div class="project_description"><%= sanitize(@project.description) %></div>
|
||||
<% end -%>
|
||||
<ul class="c">
|
||||
<%= render :partial => "todos/mobile_todo",
|
||||
:collection => @not_done,
|
||||
:locals => { :parent_container_type => "project" }%>
|
||||
<%= render :partial => @not_done, :locals => { :parent_container_type => "project" }%>
|
||||
</ul>
|
||||
<h2><%= t('projects.deferred_actions')%></h2>
|
||||
<% if @deferred.empty? -%>
|
||||
<%= t('projects.deferred_actions_empty') %>
|
||||
<% else -%>
|
||||
<ul class="c">
|
||||
<%= render :partial => "todos/mobile_todo",
|
||||
:collection => @deferred,
|
||||
:locals => { :parent_container_type => "project" }%>
|
||||
</ul><% end
|
||||
<%= render :partial => @deferred, :locals => { :parent_container_type => "project" }%>
|
||||
</ul><% end
|
||||
-%>
|
||||
<h2><%= t('projects.completed_actions')%></h2>
|
||||
<% if @done.empty? -%>
|
||||
<%= t('projects.completed_actions_empty') %>
|
||||
<% else -%>
|
||||
<ul class="c">
|
||||
<%= render :partial => "todos/mobile_todo",
|
||||
:collection => @done,
|
||||
:locals => { :parent_container_type => "project" }%>
|
||||
<%= render :partial => @done, :locals => { :parent_container_type => "project" }%>
|
||||
</ul><% end %>
|
||||
<h2><%= t('projects.notes') %></h2>
|
||||
<% if @project.notes.empty? -%>
|
||||
<%= t('projects.notes_empty') %>
|
||||
<% else -%><%= render :partial => "notes/mobile_notes_summary", :collection => @project.notes %>
|
||||
<% else -%><%= render :partial => "notes/notes_summary", :collection => @project.notes %>
|
||||
<% end -%>
|
||||
<h2><%= t('projects.settings') %></h2>
|
||||
<%= t('projects.state', :state => project.aasm_current_state.to_s) %>. <%= @project_default_context %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue