Robert Speicher
b900304c38
Make better use of the visibility_level factory traits
2016-03-08 16:40:45 -05:00
Jacob Vosmaer
1764e1b7cb
Use Gitlab::Git::DiffCollections
2016-03-03 18:38:44 +01:00
Robert Speicher
93e6282657
Add :with_avatar trait to User factory
2016-02-24 13:50:03 -05:00
Douwe Maan
ad12f11f3e
Merge branch 'rs-emoji' into 'master'
...
Update Gemojione for new hotness ✨
Before | After
------ | -----
 | 
See merge request !2800
2016-02-19 08:11:02 +00:00
Robert Speicher
f993130b13
Fix specs expecting emoji/ in image path
2016-02-13 14:03:07 -05:00
Ben Boeckel and Rémy Coutable
e919b5a4e9
Fix relative links in other markup formats
...
- Apply the RelativeLinkFilter filter to other formats, e.g.,
reStructuredText so links from the Files view or the Project view work
- Remove the AsciidocPipeline pipeline
Fixes #3533 .
2016-02-12 17:20:59 +01:00
Rémy Coutable
6e79ce2efd
Allow link_to_label to take an optional type arg
...
You can set type: :merge_request to create a link to merge request
lists instead of issues list. Accept both Symbol & String as type
argument for the link_to_label helper
2016-02-04 19:14:48 +01:00
Dmitriy Zaporozhets
9f86fcde40
Fix broken tests
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-02-04 17:00:32 +01:00
Douwe Maan
fa0cbb1399
Fix specs and add a new one
2016-01-30 12:53:12 +01:00
Robert Speicher
2e911721d2
Update text_color_for_bg helper to support RGB triplet color codes
...
Closes #12677
2016-01-24 15:06:46 -08:00
Douwe Maan
701513dcc7
Move parallel diff logic to separate class
2016-01-20 14:53:20 +01:00
Douwe Maan
512bebe21d
Refactor Gitlab::Highlight and fix tests
2016-01-19 14:52:41 +01:00
Rubén Dávila
c8db25c37c
Merge branch 'master' into issue_3945
2016-01-14 17:28:44 -05:00
Rubén Dávila
6b9c730e91
More refactoring from last code review. #3945
...
* Use commit objects instead of IDs when generating diffs
* Use proper references when generating MR's source and target
* Update broken specs
2016-01-14 16:47:55 -05:00
Douglas Barbosa Alexandre
4872b319c8
Use the WikiPipeline when rendering the wiki markdown content
2016-01-14 12:09:31 -02:00
Robert Speicher
843662821d
Move BroadcastMessage#status to a helper since it's presentational
2016-01-13 11:49:59 -05:00
Robert Speicher
5a1706791e
Update broadcast_message helper
...
Now it returns the fully-formatted message so we can be consistent about
how it's shown.
2016-01-13 11:34:58 -05:00
Robert Speicher
100cdce21e
Make sure time_ago_with_tooltip is using a Time object
...
Somehow this test existed on EE but not in CE, so it started failing
after a bad CE-to-EE merge.
2016-01-12 13:13:16 -05:00
Rubén Dávila
164c6374a7
Fix broken specs. #3945
2016-01-08 19:57:51 -05:00
Rubén Dávila
78d7c0e0d8
Fix broken specs. #3945
2016-01-08 19:05:55 -05:00
Robert Speicher
fa36749bce
Add two custom Date/Time conversion formats
2016-01-07 20:01:08 -05:00
Douwe Maan
384445eca6
Don't override issue page description in project layout.
2016-01-06 13:02:51 +01:00
Robert Speicher
43053c2e6f
Make page_description less magical ✨
2016-01-05 14:54:59 -05:00
Robert Speicher
a298f69432
Use User#avatar_url instead of avatar_icon helper
2016-01-05 14:50:52 -05:00
Douwe Maan
7a3b762978
Merge branch 'master' into more-opengraph
...
# Conflicts:
# app/views/layouts/_head.html.haml
2016-01-05 16:35:18 +01:00
Valery Sizov
8b18449125
remove public field from namespace and refactoring
2016-01-04 16:00:29 +02:00
Rubén Dávila
7de90f4b53
Fix broken spec and small refactor. #3945
2015-12-30 18:42:11 -05:00
Rubén Dávila
bb96d63153
New implementation for highlighting diff files. #3945
...
* It is more performant given now we process all the diff file instead
of processing line by line.
* Multiline comments are highlighted correctly.
2015-12-30 00:52:50 -05:00
Rubén Dávila and Rubén Dávila
34657b821a
Add syntax highlighting to diff view. #3945
2015-12-28 18:31:27 -05:00
Robert Speicher
dcca64a523
Use assign instead of instance_variable_set
2015-12-27 19:58:44 -05:00
Robert Speicher
a7756a4b51
Add specs for page_image using a Group's avatar
2015-12-27 19:49:48 -05:00
Dmitriy Zaporozhets
fd231ff9fb
Merge branch 'revert_votes_back' into 'master'
...
Revert vote buttons back to issue and MR pages
https://gitlab.com/gitlab-org/gitlab-ce/issues/3672
/cc @dzaporozhets @JobV

See merge request !2206
2015-12-25 15:52:06 +00:00
Valery Sizov
c79ffa01b4
satisfy rubocop
2015-12-25 15:46:01 +02:00
Valery Sizov
195dc3a746
add sorting of awards
2015-12-25 14:11:19 +02:00
Robert Speicher
ab3d855c0e
Add support for twitter:label meta tags
2015-12-24 17:11:08 -05:00
Robert Speicher
c6d2508362
Truncate page_description to 30 words
2015-12-24 16:26:52 -05:00
Robert Speicher
5a3b9c97e3
Account for @project.description being nil
2015-12-23 17:14:18 -05:00
Robert Speicher
b26eb782f5
Add page descriptions and images
...
A limited number of pages have defined their own descriptions, but
otherwise we default to the Project's description (if `@project` is
set), or the old `brand_title` fallback.
The image will either be the uploaded project icon (never a generated
one), the user's uploaded icon or Gravatar, or, finally, the GitLab
logo.
2015-12-23 16:56:27 -05:00
Valery Sizov
0ae0881250
fix specs
2015-12-22 23:12:23 +02:00
Valery Sizov
a48dd40a92
base implementation of emoji picker [ci skip]
2015-12-22 23:12:23 +02:00
Stan Hu
3b61dc47ec
Merge branch 'fix_leave_project_display' into 'master'
...
Fix and test leave project display
The 'Leave this project' display on project page was broken. It was calling the method incorrectly, which returned `nil` and displayed nothing.
This fixes the display and also adds 2 different tests for it.
cc/ @jvanbaarsen @stanhu Please review and merge if you think it looks good. Thank you!
See merge request !2166
2015-12-22 19:30:32 +00:00
Robert Speicher
09008026f6
Move ci_build_details_path helper spec to correct location
...
Also, make it not fail.
2015-12-21 21:57:51 -05:00
Marvin Frick and Kamil Trzcinski
0d05400bde
removes api credentials from link to build_page
...
Also adds a spec for MergeRequestHelper to avoid having a regression
later on.
2015-12-22 00:28:19 +01:00
Drew Blessing
66a8281fdd
Fix and test leave project display
2015-12-21 15:58:42 -06:00
Drew Blessing
f177aaa5fa
Backport JIRA service
2015-12-18 14:19:48 -06:00
Dmitriy Zaporozhets
664384e78b
Merge remote-tracking branch 'origin/rs-simplify-status-icon'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-12-16 19:19:07 +01:00
Dmitriy Zaporozhets
a9d19fa8ef
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
2015-12-16 14:24:32 +01:00
Gabriel Mazetto
b5291f9599
Fixed Rubocop offenses
2015-12-15 00:53:52 -02:00
Robert Speicher
3084c8c370
Define CI status icon colors in SCSS instead of a helper
2015-12-12 13:18:51 -05:00
Robert Speicher
456ddb5eb7
Fix time_ago_with_tooltip for activity feed
...
Closes #4002
2015-12-11 13:57:49 -05:00