Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
7d3c98e7
Commit
7d3c98e7
authored
Jul 27, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge some repeated codes to the partial
parent
ae094257
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
app/views/projects/issues/_issue_by_email.html.haml
app/views/projects/issues/_issue_by_email.html.haml
+4
-0
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+3
-9
No files found.
app/views/projects/issues/_issue_by_email.html.haml
View file @
7d3c98e7
.issues-footer.text-center
%button
.issue-email-modal-btn
{
type:
"button"
,
data:
{
toggle:
"modal"
,
target:
"#issue-email-modal"
}
}
Email a new issue to this project
#issue-email-modal
.modal.fade
{
tabindex:
"-1"
,
role:
"dialog"
}
#issue-email-modal
.modal.fade
{
tabindex:
"-1"
,
role:
"dialog"
}
.modal-dialog
{
role:
"document"
}
.modal-dialog
{
role:
"document"
}
.modal-content
.modal-content
...
...
app/views/projects/issues/index.html.haml
View file @
7d3c98e7
...
@@ -24,12 +24,9 @@
...
@@ -24,12 +24,9 @@
=
render
'shared/issuable/filter'
,
type: :issues
=
render
'shared/issuable/filter'
,
type: :issues
.issues-holder
.issues-holder
=
render
"issues"
=
render
'issues'
-
if
new_issue_email
-
if
new_issue_email
.issues-footer.text-center
=
render
'issue_by_email'
,
email:
new_issue_email
%button
.issue-email-modal-btn
{
type:
"button"
,
data:
{
toggle:
"modal"
,
target:
"#issue-email-modal"
}
}
Email a new issue to this project
=
render
"issue_by_email"
,
email:
new_issue_email
-
else
-
else
.blank-state.blank-state-welcome
.blank-state.blank-state-welcome
%h2
.blank-state-title.blank-state-welcome-title
%h2
.blank-state-title.blank-state-welcome-title
...
@@ -47,7 +44,4 @@
...
@@ -47,7 +44,4 @@
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
,
title:
"New Issue"
,
id:
"new_issue_link"
do
=
link_to
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
,
title:
"New Issue"
,
id:
"new_issue_link"
do
New Issue
New Issue
-
if
new_issue_email
-
if
new_issue_email
.issues-footer.text-center
=
render
'issue_by_email'
,
email:
new_issue_email
%button
.issue-email-modal-btn
{
type:
"button"
,
data:
{
toggle:
"modal"
,
target:
"#issue-email-modal"
}
}
Email a new issue to this project
=
render
"issue_by_email"
,
email:
new_issue_email
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment