Remove rest of the form parameters as we can't really support them

This commit is contained in:
Kamil Trzcinski 2016-12-20 00:29:38 +01:00
parent 841960f847
commit f7b7e918fe
No known key found for this signature in database
GPG key ID: 4505F5C7E12C6A5A
2 changed files with 5 additions and 14 deletions

View file

@ -7,6 +7,9 @@
See list of available commands in Mattermost after setting up this service,
by entering
%code /<command_trigger_word> help
= render 'projects/services/mattermost_slash_commands/detailed_help', subject: @service unless enabled
= render 'projects/services/mattermost_slash_commands/installation_info' if enabled
- unless enabled
= render 'projects/services/mattermost_slash_commands/detailed_help', subject: @service
- if enabled
= render 'projects/services/mattermost_slash_commands/installation_info', subject: @service

View file

@ -1,17 +1,5 @@
.services-installation-info
.row
%strong.col-sm-3.text-right Status
.col-sm-9= @service.activated? ? 'Installed' : 'Not installed'
.row
%strong.col-sm-3.text-right Mattermost
= link_to pretty_url(Gitlab.config.mattermost.host), Gitlab.config.mattermost.host, class: 'col-sm-9', target: '__blank'
- unless @service.activated?
.row
%strong.col-sm-3.text-right Installation
.col-sm-9
To install this service, press
%strong Add to Mattermost
and follow the instructions
.row
.col-sm-9.col-sm-offset-3
= link_to new_namespace_project_mattermost_path(@project.namespace, @project), class: 'btn btn-lg' do