From 4ebdcbc5df17afe3b88237386c8c923ae07a68b4 Mon Sep 17 00:00:00 2001 From: Alex Ward Date: Tue, 20 Mar 2018 21:39:14 +0000 Subject: [PATCH 01/17] Fix style of "In your repositories" when selected (#3699) Signed-off-by: Alex Ward --- routers/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index a63572d5b..234937b1a 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -111,7 +111,7 @@ func Issues(ctx *context.Context) { viewType := ctx.Query("type") sortType := ctx.Query("sort") - types := []string{"all", "assigned", "created_by", "mentioned"} + types := []string{"all", "your_repositories", "assigned", "created_by", "mentioned"} if !com.IsSliceContainsStr(types, viewType) { viewType = "all" } From 05abd030112907e0c791c832adf2643c05a6d053 Mon Sep 17 00:00:00 2001 From: GiteaBot Date: Tue, 20 Mar 2018 21:40:24 +0000 Subject: [PATCH 02/17] [skip ci] Updated translations via Crowdin --- options/locale/locale_de-DE.ini | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/options/locale/locale_de-DE.ini b/options/locale/locale_de-DE.ini index cc44c25f3..86c5bc313 100644 --- a/options/locale/locale_de-DE.ini +++ b/options/locale/locale_de-DE.ini @@ -639,13 +639,13 @@ issues.label_templates.use=Dieses Label Set benutzen issues.label_templates.fail_to_load_file=Fehler beim Laden der Label Template Datei '%s': %v issues.add_label_at=hat das
%s
-Label %s hinzugefügt issues.remove_label_at=hat das
%s
-Label %s entfernt -issues.add_milestone_at=`fügte das Issue zum %s Meilenstein hinzu %s` -issues.change_milestone_at=`änderte den Meilenstein von %s zu %s %s` -issues.remove_milestone_at=`entfernte das Issue vom %s Meilenstein %s` +issues.add_milestone_at=`hat diesen Issue %[2]s zum %[1]s Meilenstein hinzugefügt` +issues.change_milestone_at=`hat den Meilenstein %[3]s von %[1]s zu %[2]s geändert` +issues.remove_milestone_at=`hat diesen Issue %[2]s vom %[1]s Meilenstein entfernt` issues.deleted_milestone=`(gelöscht)` -issues.self_assign_at=`wies sich das Issue selbst zu %s` -issues.add_assignee_at=`wurde zugewiesen von %s %s` -issues.remove_assignee_at=`entfernte seine Zuweisung %s` +issues.self_assign_at=`hat sich das Issue %s selbst zugewiesen` +issues.add_assignee_at=`wurde %s zugewiesen von %s` +issues.remove_assignee_at=`hat seine Zuweisung %s entfernt` issues.change_title_at=`Titel von %s nach %s %s geändert` issues.delete_branch_at=`löschte die Branch %s %s` issues.open_tab=%d offen @@ -675,14 +675,14 @@ issues.action_milestone=Meilenstein issues.action_milestone_no_select=Kein Meilenstein issues.action_assignee=Zuständig issues.action_assignee_no_select=Niemand zuständig -issues.opened_by=%[1]s geöffnet von %[3]s +issues.opened_by=%[1]s von %[3]s geöffnet issues.opened_by_fake=geöffnet %[1]s von %[2]s issues.previous=Vorherige issues.next=Nächste issues.open_title=Offen issues.closed_title=Geschlossen issues.num_comments=%d Kommentare -issues.commented_at=`kommentierte %s` +issues.commented_at=`hat %s kommentiert` issues.delete_comment_confirm=Bist du sicher dass du diesen Kommentar löschen möchtest? issues.no_content=Hier gibt es bis jetzt noch keinen Inhalt. issues.close_issue=Schließen @@ -722,20 +722,20 @@ issues.subscribe=Abonnieren issues.unsubscribe=Abbestellen issues.tracker=Zeiterfassung issues.start_tracking_short=Start -issues.start_tracking=Starte Zeiterfassungsstopuhr -issues.start_tracking_history=begann zu arbeiten %s +issues.start_tracking=Starte Zeiterfassung +issues.start_tracking_history=hat die Zeiterfassung %s gestartet issues.tracking_already_started=`Du hast die Zeiterfassung bereits in diesem Issue gestartet!` issues.stop_tracking=Stopp -issues.stop_tracking_history=stoppte zu arbeiten %s +issues.stop_tracking_history=hat die Zeiterfassung %s angehalten issues.add_time=Zeit manuell hinzufügen issues.add_time_short=Hinzufügen issues.add_time_cancel=Abbrechen -issues.add_time_history=fügte gearbeitete Zeit hinzu %s +issues.add_time_history=hat %s gearbeitete Zeit hinzugefügt issues.add_time_hours=Stunden issues.add_time_minutes=Minuten issues.add_time_sum_to_small=Es wurde keine Zeit eingetragen issues.cancel_tracking=Abbrechen -issues.cancel_tracking_history=brach die Zeiterfassung ab %s +issues.cancel_tracking_history=hat die Zeiterfassung %s abgebrochen issues.time_spent_total=Insgesamt gearbeitete Zeit pulls.desc=Pull-Requests helfen dir deinen Code zu überprüfen und neuen Code mit der Codebasis zusammenzuführen. From e64aa18dc97f2cf25bc642c7d987a4a3bed494ac Mon Sep 17 00:00:00 2001 From: Chri-s Date: Wed, 21 Mar 2018 19:12:49 +0100 Subject: [PATCH 03/17] Change protected branch settings title to existing locale entry (#3694) --- routers/repo/setting_protected_branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/setting_protected_branch.go b/routers/repo/setting_protected_branch.go index b8ff6d6ec..ac1017b91 100644 --- a/routers/repo/setting_protected_branch.go +++ b/routers/repo/setting_protected_branch.go @@ -98,7 +98,7 @@ func SettingsProtectedBranch(c *context.Context) { return } - c.Data["Title"] = c.Tr("repo.settings.protected_branches") + " - " + branch + c.Data["Title"] = c.Tr("repo.settings.protected_branch") + " - " + branch c.Data["PageIsSettingsBranches"] = true protectBranch, err := models.GetProtectedBranchBy(c.Repo.Repository.ID, branch) From 2dc6f15eca007105fb6c3972265e6da53696bdf1 Mon Sep 17 00:00:00 2001 From: Gerben Date: Fri, 23 Mar 2018 15:10:42 +0100 Subject: [PATCH 04/17] Don't warn users about *every* dirty form (#3707) The choice regarding which forms should or should not trigger a warning is subjective. I tried to be consistent and not warn about forms that: - run an action, rather than edit data: search, send an email. - delete data: a warning about losing data would be confusing Note that forms on sign-in pages were already ignored (using a selector, rather than an explicit class on the form element). Fixes #3698. --- public/js/index.js | 7 +++++-- templates/admin/base/search.tmpl | 2 +- templates/admin/config.tmpl | 2 +- templates/explore/code.tmpl | 2 +- templates/explore/search.tmpl | 2 +- templates/org/settings/delete.tmpl | 2 +- templates/repo/commits_table.tmpl | 2 +- templates/repo/home.tmpl | 2 +- templates/repo/issue/search.tmpl | 2 +- templates/repo/search.tmpl | 2 +- templates/user/auth/activate.tmpl | 2 +- templates/user/auth/forgot_passwd.tmpl | 2 +- templates/user/auth/reset_passwd.tmpl | 2 +- templates/user/settings/applications.tmpl | 2 +- templates/user/settings/delete.tmpl | 2 +- 15 files changed, 19 insertions(+), 16 deletions(-) diff --git a/public/js/index.js b/public/js/index.js index 1e795a504..8b3d7c3d7 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1663,8 +1663,11 @@ function selectRange($list, $select, $from) { } $(function () { - if ($('.user.signin').length > 0) return; - $('form').areYouSure(); + // Warn users that try to leave a page after entering data into a form. + // Except on sign-in pages, and for forms marked as 'ignore-dirty'. + if ($('.user.signin').length === 0) { + $('form:not(.ignore-dirty)').areYouSure(); + } // Parse SSH Key $("#ssh-key-content").on('change paste keyup',function(){ diff --git a/templates/admin/base/search.tmpl b/templates/admin/base/search.tmpl index 749e42af2..7d23e51c8 100644 --- a/templates/admin/base/search.tmpl +++ b/templates/admin/base/search.tmpl @@ -17,7 +17,7 @@ -
+
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl index fd9f4f330..7c353ad30 100644 --- a/templates/admin/config.tmpl +++ b/templates/admin/config.tmpl @@ -185,7 +185,7 @@ {{end}}
{{.i18n.Tr "admin.config.mailer_user"}}
{{if .Mailer.User}}{{.Mailer.User}}{{else}}(empty){{end}}

- + {{.CsrfTokenHtml}}
diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index 600348621..742ed5944 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -2,7 +2,7 @@
{{template "explore/navbar" .}}
- +
diff --git a/templates/explore/search.tmpl b/templates/explore/search.tmpl index 6f37bcb23..906dd06ca 100644 --- a/templates/explore/search.tmpl +++ b/templates/explore/search.tmpl @@ -15,7 +15,7 @@
- +
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl index dc1858e5c..3b0ee09b1 100644 --- a/templates/org/settings/delete.tmpl +++ b/templates/org/settings/delete.tmpl @@ -13,7 +13,7 @@

{{.i18n.Tr "org.settings.delete_prompt" | Str2html}}

- + {{.CsrfTokenHtml}}
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 4503976e0..8a8e2c369 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -5,7 +5,7 @@
{{if .PageIsCommits}} - + diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 91db56c98..9f705c967 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -10,7 +10,7 @@
{{if .RepoSearchEnabled}}