Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #3192 correct typos #96

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -34,17 +34,17 @@ abstract class CleanReportAction {
}

case class ArchiveAction(dbManager:DatabaseManager,dbCleaner : AutomaticReportsCleaning) extends CleanReportAction {
val name = "Archive"
val past = "Archived"
val continue = "Archiving"
val name = "archive"
val past = "archived"
val continue = "archiving"
def act(date:DateTime) = dbManager.archiveEntries(date)
val actor = dbCleaner.archiver
}

case class DeleteAction(dbManager:DatabaseManager,dbCleaner : AutomaticReportsCleaning) extends CleanReportAction {
val name = "Delete"
val past = "Deleted"
val continue = "Deleting"
val name = "delete"
val past = "deleted"
val continue = "deleting"
def act(date:DateTime) = dbManager.deleteEntries(date)
val actor = dbCleaner.deleter
}
}
Expand Up @@ -161,7 +161,7 @@ class DatabaseManagement extends DispatchSnippet with Loggable {
}
<span style="margin-left:10px">
{
SHtml.ajaxButton("%se reports".format(action.name), { () => val askResult = action.ask(date)
SHtml.ajaxButton("%s reports".format(action.name.capitalize), { () => val askResult = action.ask(date)
JsRaw("""$('#cleanResultText').text('%s, you can see more details in the webapp log file (/var/log/rudder/core/rudder-webapp.log)');
$('#cleanResult').show();""".format(askResult)) & cancel & updateValue
} )
Expand Down