Merge pull request #50 from pflaeging/master

Fixed bug with title and made a german translation
This commit is contained in:
Hugo Zilliox 2019-10-20 12:00:36 +02:00 committed by GitHub
commit 657015d97f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 37 deletions

View File

@ -35,7 +35,7 @@ body.controller-issues.action-show .dynamicEdit {
display: inline-block;
position:absolute;
opacity: 0;
left:0;
/* left:0; correct position on top of icon */
bottom: 100%;
margin-bottom: 5px;
box-sizing: border-box;

9
config/locales/de.yml Normal file
View File

@ -0,0 +1,9 @@
# Translation by Peter Pfläging <peter@pflaeging.net>
de:
ide_txt_validation_btn : 'Änderung bestätitgen'
ide_txt_error_positive_number : 'Hier muss eine positive Zahl stehen'
ide_txt_error_start_date : 'Das Startdatum muss vor dem Enddatum liegen'
ide_txt_error_due_date : 'Das Enddatum muss nach dem Startdatum liegen'
ide_txt_error_ajax_call : 'Error (Javascript Konsole kontrollieren)'
ide_txt_cancel_btn : 'Änderungen ignorieren'
ide_txt_required_field : 'Pflichtfeld bitte ausfüllen'

View File

@ -155,8 +155,10 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener
end
# Title
# Make quotings in subject! (PP)
clonesubject = issue.subject.gsub('"','&quot;')
o << "<span class='dynamicEdit' id='TitleInput'>"
o << " <input size=\"50\" value=\"#{issue.subject}\" type=\"text\">"
o << " <input size=\"50\" value=\"#{clonesubject}\" type=\"text\">"
o << " <a href='#' class='btn btn-primary validate' aria-label='" + l(:ide_txt_validation_btn) + "'><i class='fa fa-check fa-fw' aria-hidden='true'></i></a>"
o << " <a href='#' class='btn btn-primary close' aria-label='" + l(:ide_txt_cancel_btn) + "'><i class='fa fa-times fa-fw' aria-hidden='true'></i></a>"
o << "</span>"