Commit graph

22 commits

Author SHA1 Message Date
Douwe Maan
fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Jarka Kadlecova
4464c22d6d Support descriptions for snippets 2017-05-31 07:17:03 +02:00
blackst0ne
0f9e3e2b58 Add quick submit for snippet forms 2017-03-14 09:13:03 +11:00
Filipa Lacerda
b57027f2a5 Use a new class to keep old behavior 2017-02-08 20:52:08 -06:00
Mike Greiling
7ca57c59c8 Merge branch 'master' into webpack
* master: (63 commits)
  Use `add_$role` helper in snippets specs
  removes old css class from everywhere
  Fixes broken build: Use jquery to get the element position in the page
  Check public snippets for spam
  Keep snippet visibility on error
  Update pipeline and commit URL and text on CI status change
  Support non-ASCII characters in GFM autocomplete
  Active tense test coverage
  Fix filtered search manager spec teaspoon error
  Reduce the number of loops that Cycle Analytics specs use
  Remove unnecessary returns / unset variables from the CoffeeScript -> JS conversion.
  update spec
  Change the reply shortcut to focus the field even without a selection.
  use destroy_all
  Remove settings cog from within admin scroll tabs; keep links centered
  add changelog
  remove old project members from project
  add spec replicating validation error
  Improve styling of the new issue message
  Don't capitalize environment name in show page
  ...
2017-02-02 11:45:58 -06:00
Sean McGivern
f799585c41 Keep snippet visibility on error
When a snippet is submitted, but there's an error, we didn't keep the
visibility level. As the default is private, this means that submitting
a public snippet that failed would then fall back to being a private
snippet.
2017-02-02 10:23:50 +00:00
Mike Greiling
fe964cc235 migrate all javascript asset bundles and require syntax 2017-01-10 12:30:38 -06:00
Connor Shea
0baaf490e2 Only load Ace on Snippets and file edit pages. 2016-08-18 21:48:10 +01:00
Robert Speicher
7a2370f740 Standardize the way we check for and display form errors
- Some views had a "Close" button. We've removed this, because we don't
  want users accidentally hiding the validation errors and not knowing
  what needs to be fixed.
- Some views used `li`, some used `p`, some used `span`. We've
  standardized on `li`.
- Some views only showed the first error. We've standardized on showing
  all of them.
- Some views added an `#error_explanation` div, which we've made
  standard.
2016-04-04 21:37:07 -04:00
Douwe Maan
72ab3b17d3 Use js-requires-input where appropriate 2015-12-02 14:41:56 +01:00
Douwe Maan
a70c507882 Only use input placeholders when they add value 2015-12-02 14:41:55 +01:00
Douwe Maan
ffabf1df50 Add cancel button to forms that didn't have one already 2015-12-02 14:41:54 +01:00
Douwe Maan
c0df5ff126 Merge branch 'snippet_optional_filename' into 'master'
Make snippet filename optional.

Fixes #2384.

See merge request !1866
2015-06-20 10:47:06 +00:00
Nicolas
aecc989154 Make snippet filename optional.
Fixes #2384.
2015-06-20 01:06:57 +02:00
Robert Speicher
0d7a0675ac Bootlint: Fix incorrectly nested form-group element 2015-06-16 13:33:48 -04:00
Robert Speicher
35853033b9 Fix for Snippets with a project 2015-05-26 15:48:32 -04:00
Robert Speicher
c7ae428b4c Fix labels for project/snippet visibility selection 2015-05-16 16:09:04 -04:00
Vinnie Okada
bd557e4b64 Add new admin settings
Add new global application settings for default project and snippet
visibility levels.
2015-04-26 07:48:19 -06:00
Vinnie Okada
76aad9b76e Upgrade to Rails 4.1.9
Make the following changes to deal with new behavior in Rails 4.1.2:

* Use nested resources to avoid slashes in arguments to path helpers.
2015-02-14 11:09:23 -07:00
Valery Sizov
47f539f5a6 Snippets: public/internal/private 2014-10-09 17:09:53 +03:00
Valery Sizov
fd8d1d9b62 Snippets: rename public to internal 2014-10-07 11:54:00 +03:00
Dmitriy Zaporozhets
9be5425a88
Refactor snippets views
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-14 12:36:46 +03:00
Renamed from app/views/projects/snippets/_form.html.haml (Browse further)