2014-09-02 18:07:02 +05:30
|
|
|
%div.issue-form-holder
|
2015-04-26 12:48:37 +05:30
|
|
|
%h3.page-title= @issue.new_record? ? "Create Issue" : "Edit Issue ##{@issue.iid}"
|
2014-09-02 18:07:02 +05:30
|
|
|
%hr
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @issue], html: { class: 'form-horizontal issue-form gfm-form' } do |f|
|
|
|
|
= render 'projects/issuable_form', f: f, issuable: @issue
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
:javascript
|
|
|
|
$('.assign-to-me-link').on('click', function(e){
|
|
|
|
$('#issue_assignee_id').val("#{current_user.id}").trigger("change");
|
|
|
|
e.preventDefault();
|
|
|
|
});
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
window.project_uploads_path = "#{namespace_project_uploads_path @project.namespace, @project}";
|