A few other iids instead of ids (mostly in edit forms)

This commit is contained in:
Romain 2013-10-19 09:23:51 +02:00
parent bae18f0a98
commit 53564d9009
4 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
%div.issue-form-holder %div.issue-form-holder
%h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}" %h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.iid}"
= form_for [@project, @issue] do |f| = form_for [@project, @issue] do |f|
-if @issue.errors.any? -if @issue.errors.any?
.alert.alert-error .alert.alert-error

View file

@ -1,4 +1,4 @@
%h3.page-title %h3.page-title
= "Edit merge request ##{@merge_request.id}" = "Edit merge request ##{@merge_request.iid}"
%hr %hr
= render 'form' = render 'form'

View file

@ -1,4 +1,4 @@
%h3.page-title= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.id}" %h3.page-title= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.iid}"
.back-link .back-link
= link_to project_milestones_path(@project) do = link_to project_milestones_path(@project) do
← To milestones ← To milestones

View file

@ -1,5 +1,5 @@
%li %li
= link_to [@project, merge_request] do = link_to [@project, merge_request] do
%span.badge.badge-info ##{merge_request.id} %span.badge.badge-info ##{merge_request.iid}
– –
= link_to_gfm truncate(merge_request.title, length: 60), [@project, merge_request] = link_to_gfm truncate(merge_request.title, length: 60), [@project, merge_request]