#345: fixed: /modify, /projects search

This commit is contained in:
Vokhmin Alexey V 2014-03-21 22:22:05 +04:00
parent 8068b4f023
commit f04c1105d3
3 changed files with 9 additions and 9 deletions

View File

@ -1,8 +1,8 @@
.top .top
.text .text
%span %span
= raw t("notifications.bodies.issue_assign_notification", { issue_link: link_to(issue_title, project_issue_path(project_owner, project_name, issue_serial_id))})
- name_with_owner = "#{project_owner}/#{project_name}" - name_with_owner = "#{project_owner}/#{project_name}"
= raw t("notifications.bodies.issue_assign_notification", { issue_link: link_to(issue_title, project_issue_path(name_with_owner, issue_serial_id))})
= raw t("notifications.bodies.project", project_link: link_to(name_with_owner, project_path(name_with_owner)) ) = raw t("notifications.bodies.project", project_link: link_to(name_with_owner, project_path(name_with_owner)) )
.both .both
= datetime_moment activity_feed.created_at, tag: :span, class: 'date' = datetime_moment activity_feed.created_at, tag: :span, class: 'date'

View File

@ -52,7 +52,7 @@
-# TODO: Maybe use something like Chosen with filter and prepopulated -# TODO: Maybe use something like Chosen with filter and prepopulated
-# list of potential maintainers? -# list of potential maintainers?
= autocomplete_field_tag :maintainer_name, @project.maintainer.fullname, = autocomplete_field_tag :maintainer_name, @project.maintainer.fullname,
autocomplete_maintainers_path(@project.owner, @project), autocomplete_maintainers_path(@project),
id_element: '#project_maintainer_id', id_element: '#project_maintainer_id',
placeholder: @project.maintainer.fullname placeholder: @project.maintainer.fullname

View File

@ -2,20 +2,20 @@ json.sEcho h(params[:sEcho].to_i || -1)
json.iTotalRecords @projects[:total_count] json.iTotalRecords @projects[:total_count]
json.iTotalDisplayRecords @projects[:filtered_count] json.iTotalDisplayRecords @projects[:filtered_count]
json.messages do |msg| json.messages do
msg.remove_confirm t("layout.confirm") json.remove_confirm t("layout.confirm")
end end
json.icons do |icons| json.icons do
icons.visibilities do |vis| json.visibilities do
Project::VISIBILITIES.each do |visibility| Project::VISIBILITIES.each do |visibility|
vis.set!(visibility, image_path(visibility_icon(visibility))) json.set!(visibility, image_path(visibility_icon(visibility)))
end end
end end
end end
json.aaData do |aadata| json.aaData do
aadata.array!(@projects[:projects]) do |json, proj| json.array!(@projects[:projects]) do |proj|
json.partial! 'project', project: proj json.partial! 'project', project: proj
end end
end end