summaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-02-19 17:09:47 -0600
committertechknowlogick <matti@mdranta.net>2019-02-19 18:09:47 -0500
commitd26d2497483b5ea4998350b6a03ee9a736e658da (patch)
treebd047b7fd37e1942875a17726696f9e456110826 /modules/context
parent2982413f8dc8d6976fb1f3839ee6abdd89da990b (diff)
downloadgitea-d26d2497483b5ea4998350b6a03ee9a736e658da.tar.gz
gitea-d26d2497483b5ea4998350b6a03ee9a736e658da.zip
Minor UI tweaks (#5980)
* Remove all CommitStatus when a repo is deleted Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor UI tweaks (#5782) Added 'No License' option Added link and octicon change for external issue trackers Reset password now notifies right away if the code is invalid Signed-off-by: jolheiser <john.olheiser@gmail.com> * More UI tweaks More info in PR * Generate stylesheet for arc-green * Make gofmt work * Change PR integration since the button is changed * Rebase * Generate stylesheet * UI updates Made the PR button a "basic" button Vertically centered the issue checkboxes Labels will update only once after modal is closed * Commit to reference related issues Resolves #5782 Resolves #5861 Addresses original question in #5993 * Change the comment wording since PR button is no longer little and green. * Revert changes that made Windows work * Regenerate stylesheet * Regenerate stylesheets * make generate-stylesheets * Update integration again, changed button style Signed-off-by: jolheiser <john.olheiser@gmail.com> * Added ID to PR button Changed integration to use the ID to avoid breaking in the future * Added missing semi-colons * Added back distinction between issue actions and filters (overlooked it before) Moved action button over next to other action dropdowns * Remove extra tab formatting in list.tmpl * Remove more formatting from GoLand * Replace hardcoded "No License" with i18n license helper.
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/context.go1
-rw-r--r--modules/context/repo.go5
2 files changed, 6 insertions, 0 deletions
diff --git a/modules/context/context.go b/modules/context/context.go
index 0faa5c495c..faed99da1f 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -121,6 +121,7 @@ func (ctx *Context) NotFound(title string, err error) {
}
}
+ ctx.Data["IsRepo"] = ctx.Repo.Repository != nil
ctx.Data["Title"] = "Page Not Found"
ctx.HTML(http.StatusNotFound, base.TplName("status/404"))
}
diff --git a/modules/context/repo.go b/modules/context/repo.go
index f9e366ed48..07873a3c6c 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -337,6 +337,11 @@ func RepoAssignment() macaron.Handler {
ctx.Data["RepoLink"] = ctx.Repo.RepoLink
ctx.Data["RepoRelPath"] = ctx.Repo.Owner.Name + "/" + ctx.Repo.Repository.Name
+ unit, err := ctx.Repo.Repository.GetUnit(models.UnitTypeExternalTracker)
+ if err == nil {
+ ctx.Data["RepoExternalIssuesLink"] = unit.ExternalTrackerConfig().ExternalTrackerURL
+ }
+
tags, err := ctx.Repo.GitRepo.GetTags()
if err != nil {
ctx.ServerError("GetTags", err)