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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0b2cd167
Commit
0b2cd167
authored
Jan 11, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
794a529e
437e9e4f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
26 additions
and
20 deletions
+26
-20
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+3
-3
app/presenters/project_presenter.rb
app/presenters/project_presenter.rb
+8
-8
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+4
-3
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+2
-2
changelogs/unreleased/54167-rename-project-tags-to-project-topics.yml
...nreleased/54167-rename-project-tags-to-project-topics.yml
+5
-0
doc/user/project/settings/img/general_settings.png
doc/user/project/settings/img/general_settings.png
+0
-0
doc/user/project/settings/index.md
doc/user/project/settings/index.md
+1
-1
spec/features/projects/settings/user_tags_project_spec.rb
spec/features/projects/settings/user_tags_project_spec.rb
+3
-3
No files found.
app/assets/stylesheets/pages/projects.scss
View file @
0b2cd167
...
...
@@ -219,7 +219,7 @@
color
:
$gl-text-color-secondary
;
}
.project-t
ag
-list
{
.project-t
opic
-list
{
font-size
:
$gl-font-size
;
font-weight
:
$gl-font-weight-normal
;
...
...
@@ -251,7 +251,7 @@
line-height
:
$gl-font-size-large
;
}
.project-t
ag
-list
,
.project-t
opic
-list
,
.project-metadata
{
font-size
:
$gl-font-size-small
;
}
...
...
@@ -273,7 +273,7 @@
}
.access-request-link
,
.project-t
ag
-list
{
.project-t
opic
-list
{
padding-left
:
$gl-padding-8
;
border-left
:
1px
solid
$gl-text-color-secondary
;
}
...
...
app/presenters/project_presenter.rb
View file @
0b2cd167
...
...
@@ -13,7 +13,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
presents
:project
AnchorData
=
Struct
.
new
(
:is_link
,
:label
,
:link
,
:class_modifier
,
:icon
)
MAX_T
AG
S_TO_SHOW
=
3
MAX_T
OPIC
S_TO_SHOW
=
3
def
statistic_icon
(
icon_name
=
'plus-square-o'
)
sprite_icon
(
icon_name
,
size:
16
,
css_class:
'icon append-right-4'
)
...
...
@@ -310,20 +310,20 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
end
end
def
t
ag
s_to_show
project
.
tag_list
.
take
(
MAX_T
AG
S_TO_SHOW
)
# rubocop: disable CodeReuse/ActiveRecord
def
t
opic
s_to_show
project
.
tag_list
.
take
(
MAX_T
OPIC
S_TO_SHOW
)
# rubocop: disable CodeReuse/ActiveRecord
end
def
count_of_extra_t
ag
s_not_shown
if
project
.
tag_list
.
count
>
MAX_T
AG
S_TO_SHOW
project
.
tag_list
.
count
-
MAX_T
AG
S_TO_SHOW
def
count_of_extra_t
opic
s_not_shown
if
project
.
tag_list
.
count
>
MAX_T
OPIC
S_TO_SHOW
project
.
tag_list
.
count
-
MAX_T
OPIC
S_TO_SHOW
else
0
end
end
def
has_extra_t
ag
s?
count_of_extra_t
ag
s_not_shown
>
0
def
has_extra_t
opic
s?
count_of_extra_t
opic
s_not_shown
>
0
end
private
...
...
app/views/projects/_home_panel.html.haml
View file @
0b2cd167
...
...
@@ -19,12 +19,13 @@
%span
.access-request-links.prepend-left-8
=
render
'shared/members/access_request_links'
,
source:
@project
-
if
@project
.
tag_list
.
present?
%span
.project-t
ag-list.d-inline-flex.prepend-left-8.has-tooltip
{
data:
{
container:
'body'
},
title:
@project
.
has_extra_tag
s?
?
@project
.
tag_list
.
join
(
', '
)
:
nil
}
%span
.project-t
opic-list.d-inline-flex.prepend-left-8.has-tooltip
{
data:
{
container:
'body'
},
title:
@project
.
has_extra_topic
s?
?
@project
.
tag_list
.
join
(
', '
)
:
nil
}
=
sprite_icon
(
'tag'
,
size:
16
,
css_class:
'icon append-right-4'
)
=
@project
.
t
ag
s_to_show
-
if
@project
.
has_extra_t
ag
s?
=
@project
.
t
opic
s_to_show
-
if
@project
.
has_extra_t
opic
s?
=
_
(
"+ %{count} more"
)
%
{
count:
@project
.
count_of_extra_tags_not_shown
}
.project-repo-buttons.col-md-12.col-lg-6.d-inline-flex.flex-wrap.justify-content-lg-end
-
if
current_user
.d-inline-flex
...
...
app/views/projects/edit.html.haml
View file @
0b2cd167
...
...
@@ -39,9 +39,9 @@
=
render_if_exists
'shared/repository_size_limit_setting'
,
form:
f
,
type: :project
.form-group
=
f
.
label
:tag_list
,
"T
ag
s"
,
class:
'label-bold'
=
f
.
label
:tag_list
,
"T
opic
s"
,
class:
'label-bold'
=
f
.
text_field
:tag_list
,
value:
@project
.
tag_list
.
join
(
', '
),
maxlength:
2000
,
class:
"form-control"
%p
.form-text.text-muted
Separate t
ag
s with commas.
%p
.form-text.text-muted
Separate t
opic
s with commas.
%fieldset
.features
%h5
.prepend-top-0
=
_
(
"Project avatar"
)
.form-group
...
...
changelogs/unreleased/54167-rename-project-tags-to-project-topics.yml
0 → 100644
View file @
0b2cd167
---
title
:
Rename project tags to project topics
merge_request
:
24219
author
:
type
:
other
doc/user/project/settings/img/general_settings.png
View replaced file @
794a529e
View file @
0b2cd167
35 KB
|
W:
|
H:
151 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/user/project/settings/index.md
View file @
0b2cd167
...
...
@@ -14,7 +14,7 @@ functionality of a project.
### General project settings
Adjust your project's name, description, avatar,
[
default branch
](
../repository/branches/index.md#default-branch
)
, and t
ag
s:
Adjust your project's name, description, avatar,
[
default branch
](
../repository/branches/index.md#default-branch
)
, and t
opic
s:
![
general project settings
](
img/general_settings.png
)
...
...
spec/features/projects/settings/user_tags_project_spec.rb
View file @
0b2cd167
...
...
@@ -9,13 +9,13 @@ describe 'Projects > Settings > User tags a project' do
visit
edit_project_path
(
project
)
end
it
'sets project t
ag
s'
do
fill_in
'T
ags'
,
with:
'tag1, tag
2'
it
'sets project t
opic
s'
do
fill_in
'T
opics'
,
with:
'topic1, topic
2'
page
.
within
'.general-settings'
do
click_button
'Save changes'
end
expect
(
find_field
(
'T
ags'
).
value
).
to
eq
'tag1, tag
2'
expect
(
find_field
(
'T
opics'
).
value
).
to
eq
'topic1, topic
2'
end
end
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