1. 10 Mar, 2016 1 commit
    • Jacob Schatz's avatar
      Merge branch 'markdown_preview_shortcut' into 'master' · 60d0a20b
      Jacob Schatz authored
      Add shortcut to toggle markdown preview
      
      Allow to toggle markdown preview with shortcut `ctrl+shift+p` (`cmd+shift+p` on OSX).
      
      - If the user is focused on a md textarea, `ctrl-shift-p` will show the preview, otherwise native browser event is fired
      - The textarea is re-focused after disabling the preview tab
      - Results of markdown render is cached for fast toggles
      
      I'm on linux, so if someone can test it on OS X, it would be great!
      
      Closes #14038
      
      See merge request !3111
      60d0a20b
  2. 09 Mar, 2016 35 commits
  3. 08 Mar, 2016 4 commits
    • Robert Speicher's avatar
    • Robert Speicher's avatar
      Simplify the various Snippet factories · 7000e76a
      Robert Speicher authored
      7000e76a
    • Robert Speicher's avatar
      Merge branch 'branch-tag-count-methods' into 'master' · e8cd04e8
      Robert Speicher authored
      Use dedicated methods for counting branches and tags
      
      This started out as "Lets add two methods to count and cache some data" and ended up in a clean-up/fix of some existing code. The two problems were:
      
      1. Different code was used for adding/removing branches/tags via Git and the UI
      2. The code used for the UI didn't have any RSpec tests, and I couldn't find any Spinach tests either (though grepping for Spinach stuff is hard)
      
      This MR addresses the following:
      
      1. `Repository#branch_count` and `Repository#tag_count` are used to count and cache the number of branches/tags, these methods are then used on the branches/commits/tags pages.
      2. `Repository#add_tag`, `Repository#add_branch`, `Repository#rm_tag` and `Repository#rm_branch` now all the appropriate before/after hook methods instead of calling a random single cache expiration method. This ensures caches are properly flushed when adding/removing tags/branches via the UI.
      3. RSpec tests were added for the above methods.
      
      This fixes gitlab-org/gitlab-ce#13459
      
      See merge request !3128
      e8cd04e8
    • Robert Speicher's avatar
      Merge branch 'evuez/gitlab-ce-add-info-user-api' into 'master' · fe9a445f
      Robert Speicher authored
      Expose User#last_sign_in_at and User#confirmed_at for admins
      
      Closes #840
      
      See merge request !3090
      fe9a445f