Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
fdf6ca6c
Commit
fdf6ca6c
authored
Apr 18, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve 'auto fsck' admin emails
parent
d7a4a2fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
app/mailers/repository_check_mailer.rb
app/mailers/repository_check_mailer.rb
+1
-1
app/views/repository_check_mailer/notify.html.haml
app/views/repository_check_mailer/notify.html.haml
+3
-0
app/views/repository_check_mailer/notify.text.haml
app/views/repository_check_mailer/notify.text.haml
+3
-0
spec/mailers/repository_check_mailer_spec.rb
spec/mailers/repository_check_mailer_spec.rb
+1
-1
No files found.
app/mailers/repository_check_mailer.rb
View file @
fdf6ca6c
...
...
@@ -8,7 +8,7 @@ class RepositoryCheckMailer < BaseMailer
mail
(
to:
User
.
admins
.
pluck
(
:email
),
subject:
@message
subject:
"GitLab Admin |
#{
@message
}
"
)
end
end
app/views/repository_check_mailer/notify.html.haml
View file @
fdf6ca6c
...
...
@@ -3,3 +3,6 @@
%p
=
link_to
"See the affected projects in the GitLab admin panel"
,
admin_namespaces_projects_url
(
last_repository_check_failed:
1
)
%p
You are receiving this message because you are a GitLab administrator for
#{
Gitlab
.
config
.
gitlab
.
url
}
.
app/views/repository_check_mailer/notify.text.haml
View file @
fdf6ca6c
#{
@message
}
.
\
View details:
#{
admin_namespaces_projects_url
(
last_repository_check_failed:
1
)
}
You are receiving this message because you are a GitLab administrator
for
#{
Gitlab
.
config
.
gitlab
.
url
}
.
spec/mailers/repository_check_mailer_spec.rb
View file @
fdf6ca6c
...
...
@@ -15,7 +15,7 @@ describe RepositoryCheckMailer do
it
'mentions the number of failed checks'
do
mail
=
described_class
.
notify
(
3
)
expect
(
mail
).
to
have_subject
'3 projects failed their last repository check'
expect
(
mail
).
to
have_subject
'
GitLab Admin |
3 projects failed their last repository check'
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment