diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-11-07 16:53:13 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-11-16 11:58:07 +0000 |
commit | 1b00f3a5bb556118298a3396437db74dec7b5933 (patch) | |
tree | a54c2e7968723564fdce878fd3f5fb584cbc71f7 /app | |
parent | 8dd19c4279eae0266dce2d2dc9057b0ba0f7650f (diff) | |
download | gitlab-ce-1b00f3a5bb556118298a3396437db74dec7b5933.tar.gz |
Adds alt attribute in image tags
Diffstat (limited to 'app')
-rw-r--r-- | app/views/projects/environments/components/_commit.html.haml | 1 | ||||
-rw-r--r-- | app/views/projects/environments/components/_environment.html.haml | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/environments/components/_commit.html.haml b/app/views/projects/environments/components/_commit.html.haml index c0c54325f7f..8233dec7b93 100644 --- a/app/views/projects/environments/components/_commit.html.haml +++ b/app/views/projects/environments/components/_commit.html.haml @@ -18,6 +18,7 @@ %span{ "v-if" => "model.last_deployment.commit && model.last_deployment.commit.title"} %a.avatar-image-container{"v-if" => "model.last_deployment.commit.author", ":href" => "model.last_deployment.commit.author.web_url"} %img.avatar.has-tooltip.s20{":title" => "model.last_deployment.commit.author.username", + ":alt" => "model.last_deployment.commit.author.username + `'s avatar`", ":src" => "model.last_deployment.commit.author.avatar_url"} %a.commit-row-message{":href" => "model.last_deployment.commit.commit_url"} {{model.last_deployment.commit.title}} diff --git a/app/views/projects/environments/components/_environment.html.haml b/app/views/projects/environments/components/_environment.html.haml index 1aa0d7ac5e2..42c6ae562e0 100644 --- a/app/views/projects/environments/components/_environment.html.haml +++ b/app/views/projects/environments/components/_environment.html.haml @@ -27,7 +27,7 @@ by %a{":href" => "'/' + model.last_deployment.user.username" } %img.avatar.has_tooltip.s20{ ":src" => "model.last_deployment.user.avatar_url", - ":alt" => "model.last_deployment.user.username + 'avatar'", + ":alt" => "model.last_deployment.user.username + `'s avatar`", ":title" => "model.last_deployment.user.username", data: {container: "body" }, width: 20, height: 20} |