diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-16 23:10:27 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-11-16 23:10:27 +0100 |
commit | 6f714dfb4a9b823ab75508f252d06e19e286d5f2 (patch) | |
tree | 409569ad65f1982451d9eb9a5bb0eae078abf01a /app/views | |
parent | 2749e7a58285e59381a3e788983678d9cf633b45 (diff) | |
download | gitlab-ce-6f714dfb4a9b823ab75508f252d06e19e286d5f2.tar.gz |
Improve code design after code review
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/profiles/chat_names/index.html.haml | 14 | ||||
-rw-r--r-- | app/views/profiles/chat_names/new.html.haml | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/app/views/profiles/chat_names/index.html.haml b/app/views/profiles/chat_names/index.html.haml index ae0b6336944..6d8d606583d 100644 --- a/app/views/profiles/chat_names/index.html.haml +++ b/app/views/profiles/chat_names/index.html.haml @@ -6,7 +6,7 @@ %h4.prepend-top-0 = page_title %p - You can see your Chat integrations. + You can see your Chat accounts. .col-lg-9 %h5 Active chat names (#{@chat_names.length}) @@ -39,11 +39,13 @@ = link_to service.title, edit_namespace_project_service_path(project.namespace, project, service) - else = chat_name.service.title - %td= chat_name.team_domain - %td= chat_name.chat_name - %td= - - if chat_name.used_at - time_ago_with_tooltip(chat_name.used_at) + %td + = chat_name.team_domain + %td + = chat_name.chat_name + %td + - if chat_name.last_used_at + time_ago_with_tooltip(chat_name.last_used_at) - else Never diff --git a/app/views/profiles/chat_names/new.html.haml b/app/views/profiles/chat_names/new.html.haml index 0b9ee8c71ad..f635acf96e2 100644 --- a/app/views/profiles/chat_names/new.html.haml +++ b/app/views/profiles/chat_names/new.html.haml @@ -1,11 +1,11 @@ %h3.page-title Authorization required %main{:role => "main"} %p.h4 - Authorize the chat user + Authorize %strong.text-info= @chat_name_params[:chat_name] to use your account? - %hr/ + %hr .actions = form_tag profile_chat_names_path, method: :post do = hidden_field_tag :token, @chat_name_token.token |