Robert Speicher
dbf9ccbcfe
Check originalEvent.repeat *and* event.repeat
...
phantomjs < 2.0 doesn't support creating `KeyboardEvent` so the tests
were failing on CI
2015-10-07 17:59:10 -04:00
Robert Speicher
fcf99d0d09
Check originalEvent.repeat
2015-10-07 15:23:42 -04:00
Robert Speicher
2ed5a5b70d
Remove "quick submit" behavior specific to the Notes JS
2015-10-07 15:23:42 -04:00
Robert Speicher
01d0926bc1
Add "Quick Submit" JS behavior
2015-10-07 15:23:41 -04:00
Robert Speicher
38fbfb9fe6
Require jquery.turbolinks in all JS specs
...
Side-effect: This simplifies the requiresInput handler
2015-10-07 15:23:41 -04:00
Dmitriy Zaporozhets
030b5038b1
Merge branch 'cleanup-ci-pages' into 'master'
...
Cleanup CI pages
- [x] Remove `ci/projects/:id` page
- [x] Remove Continuous integration from project menu
- [x] Remove unused css/js
- [x] Remove Ci::Commit and Ci::Build controllers
- [x] Move CI services to project settings area
cc @ayufan
Part of #2594
See merge request !1529
2015-10-07 17:04:54 +00:00
Dmitriy Zaporozhets
3fa2cb9335
Remove unused JS
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-10-07 14:59:37 +02:00
Stan Hu
0ab6ca93aa
Add directory feature button
...
Change "+" icon under "Files" section to have three options:
* Create file
* Upload file
* New directory
Upload file is no longer accessible from the "Create file" page.
Users can now select a target branch in upload file as well.
Closes #2799 : Fixes a bug where file modes were overwritten after a commit
Closes https://github.com/gitlabhq/gitlabhq/issues/8253 : Existing files
can no longer be overwritten in the "Create file" section.
Closes #2557
2015-10-07 04:22:55 -07:00
Valery Sizov
1a86a00ca3
Fix search in Files
2015-10-06 11:43:32 +03:00
Valery Sizov
31330e4a3c
Fix anchors to comments in diffs
2015-10-05 14:00:41 +03:00
Robert Speicher
8366ce364c
Merge branch 'rs-update-note' into 'master'
...
Ensure updated notes are syntax highlighted
See merge request !1444
2015-10-01 17:10:52 -04:00
Valery Sizov
05fdd12fd9
Improve error message when merging fails
2015-10-01 09:45:47 +03:00
Robert Speicher
7c20f30f05
Ensure notes are highlighted properly when they're updated
2015-09-30 16:58:35 -04:00
Dmitriy Zaporozhets
0731a7af31
Show only enabled CI projects
...
Since CI is enabled by pushing .gitlab-ci.yml file there is no need to
add CI project via dashboard
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-23 15:00:05 +02:00
Douwe Maan
183892fde9
Merge branch 'notification-levels' into 'master'
...
Notification levels can now be set on the Project's main page

The notification settings for a project can now be set directly on the Project's page. The drop down list and the button label reflect the current level.
Saving is done via a remote form submission and if successful shows the user a flash message:

@DouweM can you please review my code. I gave my bestest effort to make in clean and readable.
@rspeicher hopefully we can include it with the 8.0 release, maybe?
/cc @darby
See merge request !1322
2015-09-21 09:19:32 +00:00
Robert Speicher
68b15af46c
Fix IssuableContext javascript
...
We were calling `affix` before the events were bound so they never
triggered correctly.
Closes #2597
2015-09-18 16:35:38 -04:00
Patricio Cano
1ddefa3bea
Merge branch 'master' into notification-levels
2015-09-16 19:54:18 -05:00
Patricio Cano
1ef2ce95d5
Merge branch 'master' into notification-levels
2015-09-16 19:52:57 -05:00
Patricio Cano
4c98357f16
Added Global to the drop downs and updated the label of the button to show the current level instead of Notifications
2015-09-16 19:46:24 -05:00
Kamil Trzcinski
fb9cb3f06c
Merge remote-tracking branch 'origin/master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
2015-09-15 23:20:00 +02:00
Kamil Trzcinski
e21deaee8e
Merge remote-tracking branch 'origin/master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
...
# Conflicts:
# Gemfile.lock
2015-09-15 22:40:35 +02:00
Stan Hu
d9af6f79ed
Change the replace placeholder to use the filename
...
Dynamically adjust placedholder for uploads and fix Dropzone event handlers
Override error handler to prevent error messages from being inserted underneath image preview
Fix tests
Use regexp instead of startsWith for better browser compatibility
Remove duplicate code in _replace.html.haml and use one template
Remove files upon error and retain alert messages until user adds a new file
2015-09-15 13:07:32 -07:00
Patricio Cano
fa6df2228e
Replaced this with @ in the coffee file and added an arrow that clearly marks the Notifications button as a drop down
2015-09-14 20:50:13 -05:00
Patricio Cano
01cc20378b
Notification dropdown now shows currently active level, and also shows what the actual value of global is, if the project has the notification level set to global.
2015-09-14 20:33:24 -05:00
Stan Hu
81e741af24
Merge pull request #9138 from liyakun/master
...
add "replace" and "upload" functionality
2015-09-14 17:57:41 -07:00
Patricio Cano
adcae6ebd5
Notification level can now be saved from within the project view.
2015-09-14 19:27:54 -05:00
liyakun
e2ece2bc35
Add "Replace" and "Upload" features
...
Refactor upload and replace functionality
Rename file and move CSS
Fix typo
Make dropzone a div
Remove unnecessary file
Change color of "upload existing one"
Add missing changes
2015-09-15 02:12:56 +02:00
Dmitriy Zaporozhets
15eeae5fa8
Fix 500 when search for gitlab projects
2015-09-11 19:59:39 +02:00
Dmitriy Zaporozhets
2b683807b5
Use GitLab UI when render CI
2015-09-11 19:25:53 +02:00
Dmitriy Zaporozhets
e3c30bf2e8
Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-11 16:32:11 +02:00
Robert Speicher
19c0bf2723
Simplify syntax highlighting of new notes
2015-09-10 15:38:25 -04:00
Robert Speicher
4e54b82326
Apply syntax highlighting to Markdown previews
2015-09-10 15:38:24 -04:00
Robert Speicher
404a01ab14
Add specs for syntax_highlight JS
...
Also makes it work when given a parent element containing a
`.js-syntax-highlight` element so for dynamically-added things like
notes or Markdown previews, we can more accurately target just the
element we care about.
2015-09-10 15:38:24 -04:00
Dmitriy Zaporozhets
0b5d627cd4
Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
2015-09-09 14:56:02 +02:00
Douwe Maan
b9df499860
Merge branch 'rs-dev-issue-2466' into 'master'
...
Remove style attribute from textarea during ZenMode activation
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2466
Closes https://github.com/gitlabhq/gitlabhq/issues/8963
See merge request !1248
2015-09-07 09:20:00 +00:00
Robert Speicher
38f1d571fe
Remove style attribute from textarea during ZenMode activation
...
Closes internal https://dev.gitlab.org/gitlab/gitlabhq/issues/2466
2015-09-04 18:01:36 -04:00
Robert Speicher
cc22a2640f
Add syntax highlight scheme to notes rendered client-side
2015-09-04 17:07:24 -04:00
Dmitriy Zaporozhets
ce9cb516a1
Fix tab toggle on activity
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-03 19:27:13 +02:00
Dmitriy Zaporozhets
63ba17c4db
Redesign activity feed on dashboard and project pages
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-09-03 13:46:11 +02:00
Stan Hu
1fdf56c95d
Prevent anchors from being hidden by header upon a new page load.
...
Browsers change the scroll position after the page is loaded, and the current 1 ms
delay wasn't long enough for the browser to jump to the anchor. Even then, it appears
another 100ms delay is necessary to adjust the scroll properly:
http://stackoverflow.com/questions/19057731/scrolltop-on-page-reload-doesnt-work-possible-script-conflict
Add a little more of an offset to see a few lines before the anchor.
Closes #1614
Closes #1024
2015-08-29 02:05:37 -07:00
Douwe Maan
30555c1d24
Merge branch 'rs-remove-user-color-scheme-class' into 'master'
...
Apply syntax highlighting to fenced code blocks client-side
Instead of applying the syntax highlighting scheme class to these blocks
server-side, we use Javascript and Gon to apply the user's color scheme
(or the default) client-side.
This will make it easier to cache these blocks in the future because
they're no longer state-dependent.
See merge request !1203
2015-08-27 16:24:51 +00:00
Douwe Maan
843694f902
Merge branch 'master' into ci-and-ce-sitting-in-a-tree-k-i-s-s-i-n-g
2015-08-26 17:53:31 -07:00
Douwe Maan
6afd69f444
Update gitignore, change literal DB table names, fix errors, fix fontawesome
2015-08-26 17:47:18 -07:00
Dmitriy Zaporozhets
b54358b457
Refactor project list rendering
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-26 22:44:02 +02:00
Douwe Maan
046b283127
Groundwork for merging CI into CE
2015-08-25 18:42:46 -07:00
Robert Speicher
2c3e42e4a4
Remove user_color_scheme_class
...
Instead of rendering this value server-side, we use Javascript and Gon
to apply the user's color scheme (or the default) to any syntax
highlighted code blocks.
This will make it easier to cache these blocks in the future because
they're no longer state-dependent.
2015-08-25 15:32:38 -07:00
Dmitriy Zaporozhets
a0284b5b85
Merge branch 'separate-activity' into 'master'
...
Separate activity page
Move activity to separate page.
Part of #2225

See merge request !1198
2015-08-25 16:19:12 +00:00
Dmitriy Zaporozhets
c11e43145f
Make some visual improvements to dashboard page after we moved activity
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-25 15:23:25 +02:00
Dmitriy Zaporozhets
8f68c38746
Dashboard activity as separate page
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-25 14:13:04 +02:00
Dmitriy Zaporozhets
e02b7bf443
Improve abuse reports management
...
* Link to user profile instead of user admin page
* One button for remove user and report
* Remove user and report with page reloading
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-25 10:52:10 +02:00