Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
946f00ed
Commit
946f00ed
authored
Oct 18, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update style of snippets pages
parent
b371b6d1
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
44 deletions
+15
-44
CHANGELOG
CHANGELOG
+1
-1
app/assets/stylesheets/pages/snippets.scss
app/assets/stylesheets/pages/snippets.scss
+0
-5
app/controllers/projects/snippets_controller.rb
app/controllers/projects/snippets_controller.rb
+1
-0
app/views/dashboard/snippets/index.html.haml
app/views/dashboard/snippets/index.html.haml
+3
-25
app/views/explore/snippets/index.html.haml
app/views/explore/snippets/index.html.haml
+2
-1
app/views/projects/snippets/index.html.haml
app/views/projects/snippets/index.html.haml
+8
-12
No files found.
CHANGELOG
View file @
946f00ed
...
@@ -59,7 +59,7 @@ v 8.1.0 (unreleased)
...
@@ -59,7 +59,7 @@ v 8.1.0 (unreleased)
- Fix position of hamburger in header for smaller screens (Han Loong Liauw)
- Fix position of hamburger in header for smaller screens (Han Loong Liauw)
- Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji)
- Fix bug where Emojis in Markdown would truncate remaining text (Sakata Sinji)
- Persist filters when sorting on admin user page (Jerry Lukins)
- Persist filters when sorting on admin user page (Jerry Lukins)
- Update style of snippet
detail page
(Han Loong Liauw)
- Update style of snippet
s pages
(Han Loong Liauw)
- Allow dashboard and group issues/MRs to be filtered by label
- Allow dashboard and group issues/MRs to be filtered by label
- Add spellcheck=false to certain input fields
- Add spellcheck=false to certain input fields
- Invalidate stored service password if the endpoint URL is changed
- Invalidate stored service password if the endpoint URL is changed
...
...
app/assets/stylesheets/pages/snippets.scss
View file @
946f00ed
.my-snippets
li
:first-child
{
h4
{
margin-top
:
0
;
}
padding-top
:
0
;
}
.snippet-form-holder
.file-holder
.file-title
{
.snippet-form-holder
.file-holder
.file-title
{
padding
:
2px
;
padding
:
2px
;
}
}
...
...
app/controllers/projects/snippets_controller.rb
View file @
946f00ed
...
@@ -21,6 +21,7 @@ class Projects::SnippetsController < Projects::ApplicationController
...
@@ -21,6 +21,7 @@ class Projects::SnippetsController < Projects::ApplicationController
filter: :by_project
,
filter: :by_project
,
project:
@project
project:
@project
})
})
@snippets
=
@snippets
.
page
(
params
[
:page
]).
per
(
PER_PAGE
)
end
end
def
new
def
new
...
...
app/views/dashboard/snippets/index.html.haml
View file @
946f00ed
...
@@ -6,33 +6,11 @@
...
@@ -6,33 +6,11 @@
.gray-content-block
.gray-content-block
.pull-right
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
Add new snippet
=
icon
(
'plus'
)
New Snippet
.oneline
.oneline
Share code pastes with others out of git repository
Share code pastes with others out of git repository
%ul
.nav.nav-tabs.prepend-top-20
=
render
'snippets/snippets'
=
nav_tab
:scope
,
nil
do
=
link_to
dashboard_snippets_path
do
All
%span
.badge
=
current_user
.
snippets
.
count
=
nav_tab
:scope
,
'are_private'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_private'
)
do
Private
%span
.badge
=
current_user
.
snippets
.
are_private
.
count
=
nav_tab
:scope
,
'are_internal'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_internal'
)
do
Internal
%span
.badge
=
current_user
.
snippets
.
are_internal
.
count
=
nav_tab
:scope
,
'are_public'
do
=
link_to
dashboard_snippets_path
(
scope:
'are_public'
)
do
Public
%span
.badge
=
current_user
.
snippets
.
are_public
.
count
.my-snippets
=
render
'snippets/snippets'
app/views/explore/snippets/index.html.haml
View file @
946f00ed
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
-
if
current_user
-
if
current_user
.pull-right
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
Add new snippet
=
icon
(
'plus'
)
New Snippet
.oneline
.oneline
Public snippets created by you and other users are listed here
Public snippets created by you and other users are listed here
...
...
app/views/projects/snippets/index.html.haml
View file @
946f00ed
-
page_title
"Snippets"
-
page_title
"Snippets"
=
render
"header_title"
=
render
"header_title"
%h3
.page-title
.gray-content-block.top-block
Snippets
.pull-right
-
if
can?
current_user
,
:create_project_snippet
,
@project
=
link_to
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new"
,
title:
"New Snippet"
do
=
link_to
new_namespace_project_snippet_path
(
@project
.
namespace
,
@project
),
class:
"btn btn-new pull-right"
,
title:
"New Snippet"
do
=
icon
(
'plus'
)
Add new s
nippet
New S
nippet
%p
.light
.oneline
Share code pastes with others out of git repository
Share code pastes with others out of git repository
%ul
.bordered-list
=
render
'snippets/snippets'
=
render
partial:
"shared/snippets/snippet"
,
collection:
@snippets
-
if
@snippets
.
empty?
%li
.nothing-here-block
Nothing here.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment