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
e2968755
Commit
e2968755
authored
Jan 02, 2013
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix link titles
parent
621c6b85
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/views/notes/_form.html.haml
app/views/notes/_form.html.haml
+2
-2
app/views/notes/_note.html.haml
app/views/notes/_note.html.haml
+1
-1
No files found.
app/views/notes/_form.html.haml
View file @
e2968755
...
@@ -7,9 +7,9 @@
...
@@ -7,9 +7,9 @@
=
f
.
hidden_field
:noteable_type
=
f
.
hidden_field
:noteable_type
.note_text_and_preview.js-toggler-container
.note_text_and_preview.js-toggler-container
%a
.js-note-preview-button.js-toggler-target.turn-off
{
href:
"javascript:;"
,
data:
{
title:
"Preview"
,
url:
preview_project_notes_path
(
@project
)}
}
%a
.js-note-preview-button.js-toggler-target.turn-off
{
href:
"javascript:;"
,
title:
"Preview"
,
data:
{
url:
preview_project_notes_path
(
@project
)}
}
%i
.icon-eye-open
%i
.icon-eye-open
%a
.js-note-edit-button.js-toggler-target.turn-off
{
href:
"javascript:;"
,
data:
{
title:
"Edit"
}
}
%a
.js-note-edit-button.js-toggler-target.turn-off
{
href:
"javascript:;"
,
title:
"Edit"
}
%i
.icon-edit
%i
.icon-edit
=
f
.
text_area
:note
,
size:
255
,
class:
'note_text js-note-text js-gfm-input turn-on'
=
f
.
text_area
:note
,
size:
255
,
class:
'note_text js-note-text js-gfm-input turn-on'
...
...
app/views/notes/_note.html.haml
View file @
e2968755
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
Link here
Link here
-
if
(
note
.
author_id
==
current_user
.
id
)
||
can?
(
current_user
,
:admin_note
,
@project
)
-
if
(
note
.
author_id
==
current_user
.
id
)
||
can?
(
current_user
,
:admin_note
,
@project
)
=
link_to
project_note_path
(
@project
,
note
),
method: :delete
,
confirm:
'Are you sure?'
,
remote:
true
,
class:
"danger js-note-delete"
do
=
link_to
project_note_path
(
@project
,
note
),
title:
"Remove comment"
,
method: :delete
,
confirm:
'Are you sure?'
,
remote:
true
,
class:
"danger js-note-delete"
do
%i
.icon-remove-circle
%i
.icon-remove-circle
=
image_tag
gravatar_icon
(
note
.
author
.
email
),
class:
"avatar s32"
=
image_tag
gravatar_icon
(
note
.
author
.
email
),
class:
"avatar s32"
=
link_to
note
.
author_name
,
project_team_member_path
(
@project
,
@project
.
team_member_by_id
(
note
.
author
)),
class:
"note-author"
=
link_to
note
.
author_name
,
project_team_member_path
(
@project
,
@project
.
team_member_by_id
(
note
.
author
)),
class:
"note-author"
...
...
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