diff options
author | Tom Quirk <tomquirkacc@gmail.com> | 2019-08-09 11:20:25 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-08-09 11:20:25 +0300 |
commit | 737b134c0f3b556142abda7f10716ce66d4c37b1 (patch) | |
tree | 1cf3e5050ec7558f5507fe65a60f9aeb68c56aef /app/views/projects/forks | |
parent | bbf639c43d689bd63a32ef7a60bdf83d3bd329bf (diff) |
resolve review comments:
- use .mx-auto for avatar
- remove parent div for group_icon
Diffstat (limited to 'app/views/projects/forks')
-rw-r--r-- | app/views/projects/forks/_fork_button.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/projects/forks/_fork_button.html.haml b/app/views/projects/forks/_fork_button.html.haml index 3f0798a898d..c7ed6a5094d 100644 --- a/app/views/projects/forks/_fork_button.html.haml +++ b/app/views/projects/forks/_fork_button.html.haml @@ -5,9 +5,9 @@ .bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.prepend-top-default.append-bottom-default.forked = link_to project_path(forked_project) do - if /no_((\w*)_)*avatar/.match(avatar) - = group_icon(namespace, class: "avatar rect-avatar s100 identicon") + = group_icon(namespace, class: "avatar rect-avatar s100 identicon mx-auto") - else - .avatar-container.s100 + .avatar-container.s100.mx-auto = image_tag(avatar, class: "avatar s100") %h5.prepend-top-default = namespace.human_name @@ -18,9 +18,9 @@ class: ("disabled has-tooltip" unless can_create_project), title: (_('You have reached your project limit') unless can_create_project) do - if /no_((\w*)_)*avatar/.match(avatar) - = group_icon(namespace, class: "avatar rect-avatar s100 identicon") + = group_icon(namespace, class: "avatar rect-avatar s100 identicon mx-auto") - else - .avatar-container.s100 + .avatar-container.s100.mx-auto = image_tag(avatar, class: "avatar s100") %h5.prepend-top-default = namespace.human_name |