Commit 9d774459 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

zj frontend review

parent 8df4a412
...@@ -24,10 +24,9 @@ ...@@ -24,10 +24,9 @@
%h4 Team %h4 Team
%p Select or create the team where the slash commands will be used in %p Select or create the team where the slash commands will be used in
- options = mattermost_teams_options(@teams) - options = mattermost_teams_options(@teams)
- isOneTeam = options.count === 1 = f.select(:team_id, options, {}, {class: 'form-control', selected: "#{options.first[1] if options.count.one?}", disabled: options.count.one?})
= f.select(:team_id, options, {}, {class: 'form-control', selected: "#{options.first[1] if isOneTeam}", disabled: isOneTeam})
.help-block .help-block
- if isOneTeam - if options.count.one?
This is the only team where you are an administrator. This is the only team where you are an administrator.
- else - else
The list shows teams where you are administrator The list shows teams where you are administrator
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.col-sm-9= @service.activated? ? 'Installed' : 'Not installed' .col-sm-9= @service.activated? ? 'Installed' : 'Not installed'
.row .row
%strong.col-sm-3.text-right Mattermost %strong.col-sm-3.text-right Mattermost
= link_to Gitlab.config.mattermost.host, Gitlab.config.mattermost.host, class: 'col-sm-9', target: '__blank' = link_to Gitlab.config.mattermost.host.gsub(/\A.*?:\/\//, ''), Gitlab.config.mattermost.host, class: 'col-sm-9', target: '__blank'
.row .row
%strong.col-sm-3.text-right Installation %strong.col-sm-3.text-right Installation
.col-sm-9 .col-sm-9
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment