Commit graph

24 commits

Author SHA1 Message Date
Luke Bennett
70f7d2446a Review changes
Updated tests
2016-10-01 00:01:47 +03:00
Luke Bennett
61afa65d4e Added soft wrap logic and button to editor
Added tests

Added awesomeeeeee icons
2016-10-01 00:01:47 +03:00
Jacob Schatz
d754b2ce76 Revert "Merge branch '18297-i-would-like-text-to-wrap-when-in-edit-mode-on-web-app' into 'master'"
This reverts merge request !6188
2016-09-29 00:56:30 +00:00
Luke Bennett
ee02856d59 Added soft wrap logic and button to editor
Added tests

Added awesomeeeeee icons
2016-09-28 19:11:11 +03:00
Lin Jen-Shin
31e592647a Fix download artifacts button link:
Rails ignored unused arguments and ref_name_and_path is the last
path argument, therefore we need to concatenate that parts ourselves.

Otherwise, 'download' won't be shown at all.
2016-09-19 13:12:45 +08:00
Lin Jen-Shin
f673f1e3bd Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name
* upstream/master: (109 commits)
  Update CHANGELOG for 8.10.6, 8.9.7, and 8.8.8
  Updated Akismet documentation
  Add hover state to todos (!5361)
  Load issues and merge requests templates from repository
  Backport EE assertions in protected branch related specs.
  Revert "Merge branch '19957-write-tests-for-adding-comments-for-different-line-types-in-diff' into 'master'"
  Fix a missed `before_action` for `AutocompleteController`.
  Backport `AutocompleteController#load_project` from EE!581.
  Fix API::BranchesSpec.
  Fix failing tests relating to backporting ee!581.
  Revert unrelevant changes
  Fix the protected branches factory.
  Improve EE compatibility with protected branch access levels.
  Move the "update" portion of the protected branch view into a partial.
  Don't select an access level if already selected.
  Backport changes from gitlab-org/gitlab-ee!581 to CE.
  Further refactor and syntax fixes.
  Upgrade httpclient gem from 2.7.0.1 to 2.8.2.
  Make rubocop happy
  Make rubocop happy
  ...
2016-08-17 13:40:18 +08:00
Jacob Schatz
86a8409eaf Merge branch 'file-content-highlight-line' into 'master'
Highlight empty lines

## What does this MR do?

Rather than just highlight the text, file line highlighting now highlights the full line including empty lines

## What are the relevant issue numbers?

Closes #19484 

## Screenshots (if relevant)

![Screen_Shot_2016-07-05_at_13.52.31](/uploads/d3bddc918d731681465381e96c0aa2b0/Screen_Shot_2016-07-05_at_13.52.31.png)

See merge request !5092
2016-08-16 20:36:31 +00:00
Douwe Maan
a669bdb8e6 Merge branch 'frank-west-iii/gitlab-ce-fwiii-5857-web-editor-overwrites-commits' 2016-08-15 16:54:49 -05:00
Lin Jen-Shin
567ef6c175 Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name
* upstream/master: (123 commits)
  Limit the size of SVGs when viewing them as blobs
  Add a spec for ProjectsFinder project_ids_relation option
  Fix ProjectsFinder spec
  Pass project IDs relation to ProjectsFinder instead of using a block
  Speed up todos queries by limiting the projects set we join with
  Used phantomjs variable
  Ability to specify branches for pivotal tracker integration
  Fix a memory leak caused by Banzai::Filter::SanitizationFilter
  Update phantomjs link
  Remove sleeping and replace escaped text.
  Filters test fix
  Fixed filtering tests
  Removed screenshot command 💩
  Updated failing tests
  Used mirrored version on GitLab
  Updated tests
  Fix `U2fSpec` for PhantomJS versions > 2.
  Fix file downloading
  Install latest stable phantomjs
  Use new PhantomJS version
  ...
2016-08-16 00:14:26 +08:00
Frank West
ade0c2c892 Prevents accidental overwrites of commits from UI
Currently when a user performs an update of a file through the UI  and there
has already been a change committed to the file the previous commits will be
overwritten without a check to see if the file has been changed.

This commit uses the last commit sha at the time the user starts editing the
file and compares it with the current sha of the file being edited to ensure
they are the same before committing the file. If the shas do not match we
throw an exception preventing the commit from the commit from occurring.

Fixes #5857
2016-08-15 02:34:55 +00:00
Phil Hughes
f668da11cb Updated tests 2016-08-13 00:57:40 -05:00
Lin Jen-Shin
cc3dbf83f4 Empty lines around blocks 2016-08-10 18:57:51 +08:00
Lin Jen-Shin
6234b32785 Merge remote-tracking branch 'upstream/master' into artifacts-from-ref-and-build-name
* upstream/master: (516 commits)
  Rename `run` task helper method to prevent conflict with StateMachine
  Add a method in Project to return a cached value of total count of projects
  Add Changelog entry for Grape upgrade [ci skip]
  Fix Grape tests.
  Retain old behavior
  Update Grape from 0.13.0 to 0.15.0.
  adds second batch of tests changed to active tense
  fixes part1 of files to start using active tense
  Clarify the features for generating default label sets
  Update tree view to sort folders with submodules
  Memoize CI config node validator to prevent leaks
  fix MR source project assignment
  remove offending empty line
  Rails prefers require_dependency so that it won't require twice:
  use Unix line endings for API documentation
  use long options for curl examples in API documentation (!5703)
  Prefixes removed branches name with PR number when importing PR from GH
  Update CHANGELOG
  Remove SHA suffix for removed branches name when importing PR from GH
  add linting script for documentation
  ...
2016-08-10 17:48:46 +08:00
Adam Buckland
8abc757539 Update tree view to sort folders with submodules
Currently trees are sorted in the fashion:
- folders
- files
- submodules
with each section sorted alphabetically

This changes to this system:
- folders and submodules (sorted together)
- files
2016-08-09 14:08:47 +01:00
Lin Jen-Shin
80c22e4c09 Add four features tests for download buttons in different places 2016-07-25 20:52:18 +08:00
Phil Hughes
26055b16b5 Highlight empty lines
Closes #19484
2016-07-20 08:42:59 +01:00
Rémy Coutable
bb3801268b
Fix specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-07-06 17:52:59 +02:00
Alfredo Sumaran
73fdc9b6d3 Update tests to check if label is set after picking a template 2016-06-23 12:48:59 -05:00
Alfredo Sumaran
a18df1d15a Add feature test for gitab CI dropdown 2016-06-20 14:48:28 -05:00
Alfredo Sumaran
e8a467e094 Implements TemplateDropdown class to create custom template dropdowns
Also License dropdown has been ported to use our GL dropdown instead of Select2.
Fixes tests to make it work with current implementation
2016-06-16 00:28:45 -05:00
Connor Shea
2bf818c4d0
Fix some specs which would have broken in 2017 to not break anymore by using a dynamic year value. 2016-05-22 19:50:49 -06:00
Alfredo Sumaran
1f5fcb638d Dropdown implementation 2016-05-20 15:58:36 -05:00
Rémy Coutable
b2370fefad Fix specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-18 14:47:50 +02:00
Rémy Coutable
13804aba86 Continue implementation of the license template selector and /licenses API endpoint
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-04-18 14:47:50 +02:00