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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
8fcb9559
Commit
8fcb9559
authored
Jan 03, 2017
by
Kamil Trzciński
Committed by
Douglas Barbosa Alexandre
Jan 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'use-stable-icon-url' into 'master'
Use stable icon for Mattermost integration See merge request !8252
parent
c6c83ca8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
app/controllers/projects/mattermosts_controller.rb
app/controllers/projects/mattermosts_controller.rb
+1
-1
app/views/projects/services/slack_slash_commands/_help.html.haml
...ws/projects/services/slack_slash_commands/_help.html.haml
+1
-1
public/slash-command-logo.png
public/slash-command-logo.png
+0
-0
spec/features/projects/services/mattermost_slash_command_spec.rb
...atures/projects/services/mattermost_slash_command_spec.rb
+6
-0
No files found.
app/controllers/projects/mattermosts_controller.rb
View file @
8fcb9559
...
...
@@ -30,7 +30,7 @@ class Projects::MattermostsController < Projects::ApplicationController
def
configure_params
params
.
require
(
:mattermost
).
permit
(
:trigger
,
:team_id
).
merge
(
url:
service_trigger_url
(
@service
),
icon_url:
asset_url
(
'
gitlab_
logo.png'
))
icon_url:
asset_url
(
'
slash-command-
logo.png'
))
end
def
teams
...
...
app/views/projects/services/slack_slash_commands/_help.html.haml
View file @
8fcb9559
...
...
@@ -50,7 +50,7 @@
.form-group
=
label_tag
nil
,
'Customize icon'
,
class:
'col-sm-2 col-xs-12 control-label'
.col-sm-10.col-xs-12.text-block
=
image_tag
(
asset_url
(
'
gitlab_
logo.png'
),
width:
36
,
height:
36
)
=
image_tag
(
asset_url
(
'
slash-command-
logo.png'
),
width:
36
,
height:
36
)
=
link_to
(
'Download image'
,
asset_url
(
'gitlab_logo.png'
),
class:
'btn btn-sm'
,
target:
'_blank'
)
.form-group
...
...
public/slash-command-logo.png
0 → 100644
View file @
8fcb9559
9.29 KB
spec/features/projects/services/mattermost_slash_command_spec.rb
View file @
8fcb9559
...
...
@@ -49,4 +49,10 @@ feature 'Setup Mattermost slash commands', feature: true do
end
end
end
describe
'stable logo url'
do
it
'shows a publicly available logo'
do
expect
(
File
.
exist?
(
Rails
.
root
.
join
(
'public/slash-command-logo.png'
)))
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