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
Show 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 @@
...
@@ -219,7 +219,7 @@
color
:
$gl-text-color-secondary
;
color
:
$gl-text-color-secondary
;
}
}
.project-t
ag
-list
{
.project-t
opic
-list
{
font-size
:
$gl-font-size
;
font-size
:
$gl-font-size
;
font-weight
:
$gl-font-weight-normal
;
font-weight
:
$gl-font-weight-normal
;
...
@@ -251,7 +251,7 @@
...
@@ -251,7 +251,7 @@
line-height
:
$gl-font-size-large
;
line-height
:
$gl-font-size-large
;
}
}
.project-t
ag
-list
,
.project-t
opic
-list
,
.project-metadata
{
.project-metadata
{
font-size
:
$gl-font-size-small
;
font-size
:
$gl-font-size-small
;
}
}
...
@@ -273,7 +273,7 @@
...
@@ -273,7 +273,7 @@
}
}
.access-request-link
,
.access-request-link
,
.project-t
ag
-list
{
.project-t
opic
-list
{
padding-left
:
$gl-padding-8
;
padding-left
:
$gl-padding-8
;
border-left
:
1px
solid
$gl-text-color-secondary
;
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
...
@@ -13,7 +13,7 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
presents
:project
presents
:project
AnchorData
=
Struct
.
new
(
:is_link
,
:label
,
:link
,
:class_modifier
,
:icon
)
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'
)
def
statistic_icon
(
icon_name
=
'plus-square-o'
)
sprite_icon
(
icon_name
,
size:
16
,
css_class:
'icon append-right-4'
)
sprite_icon
(
icon_name
,
size:
16
,
css_class:
'icon append-right-4'
)
...
@@ -310,20 +310,20 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
...
@@ -310,20 +310,20 @@ class ProjectPresenter < Gitlab::View::Presenter::Delegated
end
end
end
end
def
t
ag
s_to_show
def
t
opic
s_to_show
project
.
tag_list
.
take
(
MAX_T
AG
S_TO_SHOW
)
# rubocop: disable CodeReuse/ActiveRecord
project
.
tag_list
.
take
(
MAX_T
OPIC
S_TO_SHOW
)
# rubocop: disable CodeReuse/ActiveRecord
end
end
def
count_of_extra_t
ag
s_not_shown
def
count_of_extra_t
opic
s_not_shown
if
project
.
tag_list
.
count
>
MAX_T
AG
S_TO_SHOW
if
project
.
tag_list
.
count
>
MAX_T
OPIC
S_TO_SHOW
project
.
tag_list
.
count
-
MAX_T
AG
S_TO_SHOW
project
.
tag_list
.
count
-
MAX_T
OPIC
S_TO_SHOW
else
else
0
0
end
end
end
end
def
has_extra_t
ag
s?
def
has_extra_t
opic
s?
count_of_extra_t
ag
s_not_shown
>
0
count_of_extra_t
opic
s_not_shown
>
0
end
end
private
private
...
...
app/views/projects/_home_panel.html.haml
View file @
0b2cd167
...
@@ -19,12 +19,13 @@
...
@@ -19,12 +19,13 @@
%span
.access-request-links.prepend-left-8
%span
.access-request-links.prepend-left-8
=
render
'shared/members/access_request_links'
,
source:
@project
=
render
'shared/members/access_request_links'
,
source:
@project
-
if
@project
.
tag_list
.
present?
-
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'
)
=
sprite_icon
(
'tag'
,
size:
16
,
css_class:
'icon append-right-4'
)
=
@project
.
t
ag
s_to_show
=
@project
.
t
opic
s_to_show
-
if
@project
.
has_extra_t
ag
s?
-
if
@project
.
has_extra_t
opic
s?
=
_
(
"+ %{count} more"
)
%
{
count:
@project
.
count_of_extra_tags_not_shown
}
=
_
(
"+ %{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
.project-repo-buttons.col-md-12.col-lg-6.d-inline-flex.flex-wrap.justify-content-lg-end
-
if
current_user
-
if
current_user
.d-inline-flex
.d-inline-flex
...
...
app/views/projects/edit.html.haml
View file @
0b2cd167
...
@@ -39,9 +39,9 @@
...
@@ -39,9 +39,9 @@
=
render_if_exists
'shared/repository_size_limit_setting'
,
form:
f
,
type: :project
=
render_if_exists
'shared/repository_size_limit_setting'
,
form:
f
,
type: :project
.form-group
.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"
=
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
%fieldset
.features
%h5
.prepend-top-0
=
_
(
"Project avatar"
)
%h5
.prepend-top-0
=
_
(
"Project avatar"
)
.form-group
.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.
...
@@ -14,7 +14,7 @@ functionality of a project.
### General project settings
### 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
)
![
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
...
@@ -9,13 +9,13 @@ describe 'Projects > Settings > User tags a project' do
visit
edit_project_path
(
project
)
visit
edit_project_path
(
project
)
end
end
it
'sets project t
ag
s'
do
it
'sets project t
opic
s'
do
fill_in
'T
ags'
,
with:
'tag1, tag
2'
fill_in
'T
opics'
,
with:
'topic1, topic
2'
page
.
within
'.general-settings'
do
page
.
within
'.general-settings'
do
click_button
'Save changes'
click_button
'Save changes'
end
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
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