Douwe Maan
40d2daed89
Highlight note code and edit preview
2016-01-25 11:42:47 +01:00
Dmitriy Zaporozhets
56b527093d
Merge branch 'fix-comment-on-diff-ajax-loading'
2016-01-22 10:20:19 -08:00
Douwe Maan
21facf5353
Use consistent markup and styling for highlighting across blobs, diffs, blame and snippets
2016-01-21 14:23:53 +01:00
Dmitriy Zaporozhets
1667d2134c
Merge branch 'show-message-to-signed-out-users-to-sign-in-if-they-want-to-comment' into 'master'
...
Adds disabled comment field and disabled avatar.
Fixes #3540

See merge request !2508
2016-01-20 22:27:40 +00:00
Rémy Coutable
12da27090f
Address some JS coding-style and HTML semantic issues
...
- Replace 'rel' attributes with 'data' or 'id' attributes
- Style jQuery methods chaining according to Jacob's guidelines
- Rename a method
2016-01-20 22:39:32 +01:00
Douwe Maan
701513dcc7
Move parallel diff logic to separate class
2016-01-20 14:53:20 +01:00
Jacob Schatz
3278c5b073
Adds disabled comment field and disabled avatar.
2016-01-20 00:15:55 -05:00
Rubén Dávila
c8db25c37c
Merge branch 'master' into issue_3945
2016-01-14 17:28:44 -05:00
Rémy Coutable
33ea09bdf9
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into fix/private-references
2016-01-13 19:46:38 +01:00
Rémy Coutable
5efbfa14d4
Move complex view condition to a model method
...
This is moved to a model method rather than an helper method because the
API will need it too.
2016-01-13 16:37:17 +01:00
Rémy Coutable
9d7f88c122
Show referenced MRs & Issues only when the current viewer can access them
2016-01-13 11:59:10 +01:00
Rubén Dávila
80a4c808b1
Make diff_line_content helper return a safe String. #3945
2016-01-12 11:02:16 -05:00
Drew Blessing
7a22b6b0de
Improve button styles
2016-01-08 14:43:59 -06:00
Andriy Dyadyura
5e0b989fca
new button sizes
2015-12-23 15:46:13 +01:00
Grzegorz Bizon and Grzegorz Bizon
6fb120d1b0
Assign notes object to a variable
2015-12-15 14:19:35 +01:00
Douwe Maan
d611a38798
Merge branch 'master' into reference-pipeline-and-caching
2015-12-07 14:48:53 +01:00
Douwe Maan
9bad736fb3
Remove unnecesary wrapper elements
2015-12-02 14:41:56 +01:00
Douwe Maan
2955ca613b
Merge branch 'master' into reference-pipeline-and-caching
2015-12-02 11:20:51 +01:00
Douwe Maan
f5a630111f
Merge branch 'master' into reference-pipeline-and-caching
2015-11-19 15:46:04 +01:00
Valery Sizov
fd2c0fe446
award emoji
2015-11-19 01:25:27 +02:00
Robert Speicher
b7b49dab92
Merge branch 'param-view' into 'master'
...
See merge request !1816
2015-11-17 11:43:47 -05:00
Douwe Maan
e49190cad9
Don't use params[:view] directly.
2015-11-17 16:33:38 +01:00
Jason Lee
3ae1dee475
Avoid render edit_form when visitor can't edit them.
...
Reverted #9820 , github/task_list need a form, textarea for update.
2015-11-17 23:21:03 +08:00
Robert Speicher
c8e53d4467
Revert "Merge pull request #9820 from huacnlee/avoid-render-form-in-notes-list"
...
This reverts commit 63144cd062 , reversing
changes made to 8ab5df9d87 .
2015-11-16 13:08:08 -05:00
Dmitriy Zaporozhets
329a5555e5
Merge branch 'fix-avatar-not-showing' of https://gitlab.com/stanhu/gitlab-ce
2015-11-12 13:25:22 +01:00
Jason Lee
1974087114
Avoid render edit_form in each notes.
...
Use RJS to render edit note feature.
Before:
```
Rendered projects/notes/_note.html.haml (27.9ms)
Rendered projects/_zen.html.haml (0.3ms)
Rendered projects/notes/_hints.html.haml (0.7ms)
Rendered projects/_md_preview.html.haml (3.9ms)
Rendered projects/notes/_edit_form.html.haml (6.9ms)
Rendered projects/notes/_note.html.haml (17.7ms)
Rendered projects/_zen.html.haml (0.3ms)
Rendered projects/notes/_hints.html.haml (0.6ms)
Rendered projects/_md_preview.html.haml (3.4ms)
Rendered projects/notes/_edit_form.html.haml (7.0ms)
```
After:
```
Rendered projects/notes/_note.html.haml (13.8ms)
Rendered projects/notes/_note.html.haml (7.1ms)
Rendered projects/notes/_note.html.haml (9.5ms)
Rendered projects/notes/_note.html.haml (8.5ms)
```
This change reduce at least 6ms * N ('N' - number of notes).
2015-11-12 13:16:35 +08:00
Stan Hu
9738097722
Fix avatars not showing in Atom feeds and project issues when Gravatar disabled
...
Fix for https://github.com/gitlabhq/gitlabhq/pull/9783
2015-11-10 10:52:18 -08:00
Douwe Maan
de0acf3cf7
Merge branch 'master' into reference-pipeline-and-caching
2015-10-21 11:36:41 +02:00
Yorick Peterse
f3980e230f
Don't use link_to/image_tag where not needed
...
In these particular instances we can just use HAML tags directly. This
can shave off some time spent loading issue pages, though this depends
on the amount of comments being displayed.
When viewing https://gitlab.com/gitlab-org/gitlab-ce/issues/2164 locally
these changes reduce loading time by about 400 ms in total.
2015-10-15 12:05:01 +02:00
Yorick Peterse
39fcd445fa
Use note.author for issue comment avatars
...
This removes the need for running a query to find the User object again
based on the supplied Email address.
2015-10-15 12:05:01 +02:00
Douwe Maan
925dc5925b
Cache rendered contents of issues, MRs and notes
2015-10-14 21:29:35 +02:00
Robert Speicher
de3ff174e7
Quick Submit all the things!
...
Adds quick submit behavior to the forms for:
- Blobs ("new file")
- Commit messages
- Issuables
- Notes
- Labels
- Milestones
- Wikis
2015-10-07 15:23:42 -04:00
Andrey and Dmitriy Zaporozhets
7ad4521f66
Fixes to dropdown, font colors for new project and merge request
2015-10-07 16:47:44 +02:00
Valery Sizov
97e6c9b42c
Wrong access level badge on MR comments
2015-10-02 15:11:17 +03:00
Robert Speicher
9ade9a6451
Don't render the edit_form view for system notes
2015-09-30 16:58:34 -04:00
Stan Hu
ef2fb20135
More tweaks to make note edit/preview CSS consistent
...
Closes #2585
2015-09-21 10:11:58 -07:00
Dmitriy Zaporozhets
c9d78a00c5
Fix UI bugs with discussions
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-09 11:36:55 +02:00
Dmitriy Zaporozhets
4651155881
Make system note different from regular comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-08 16:11:41 +02:00
Dmitriy Zaporozhets
4bea030c88
Style system notes
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-08 10:12:14 +02:00
Douwe Maan
ad55f0d6f9
Merge branch 'master' into comment-updated-by
2015-08-07 15:05:17 +02:00
Gert Goet
7d2259b36f
Diff colors on MR Discussion like on Changes-tab
...
Fixes #2216
2015-08-06 21:39:22 +02:00
Douwe Maan
36bd6c8494
Show who last edited a comment if it wasn't the original author
2015-07-30 14:45:54 +02:00
Robert Speicher
7679a7ea55
Render Note field hints consistently for "new" and "edit" forms
...
- The "Edit" form didn't have Markdown hints.
- The "New" form had a paperclip icon for attachments, the "edit" form
didn't.
Closes #2010
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2525
2015-07-26 16:55:43 -04:00
Hannes Rosenögger
bf3b318ec5
revert caching of note text
2015-07-21 13:59:14 +02:00
Stan Hu
875d8e7f31
Fix bug where notes were being rendered with wrong color preferences due to caching
...
Closes #2008
2015-07-18 07:32:18 -07:00
Dmitriy Zaporozhets
fdbaffdc08
Merge branch 'comment-box-changes' of gitlab.com:gitlab-org/gitlab-ce
2015-07-10 13:13:02 +02:00
Darby
360ee25ddb
Fixed the issues
2015-07-09 13:38:33 -07:00
Darby
c611b6f623
Comment box/Placeholder text redo
2015-07-01 15:49:31 -07:00
Dmitriy Zaporozhets
4d80360bed
Cache markdown of comments
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-30 15:54:20 +02:00
Dmitriy Zaporozhets
342d553709
Rename abilities to correspond contoller/model action names
...
write_ was renamed to create_
modify_ was renamed to update_
So now in update action we have next code
def create
can?(current_user, :create_issue, @issue)
end
def update
can?(current_user, :update_issue, @issue)
end
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-26 15:55:56 +02:00