aboutsummaryrefslogtreecommitdiffstats
path: root/templates/org
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-01 05:00:14 +0100
committerGitHub <noreply@github.com>2020-11-30 23:00:14 -0500
commitb1cf7f4df11dfac879d65125880d18a03fef22c0 (patch)
tree79a9f65c922b4e247744d7fc8a96509f4a72caa1 /templates/org
parent14e8ef9ecb7c79ba8adff6fee44fc9bfb669814c (diff)
downloadgitea-b1cf7f4df11dfac879d65125880d18a03fef22c0.tar.gz
gitea-b1cf7f4df11dfac879d65125880d18a03fef22c0.zip
Add class to page content to unify top margin (#13766)
* Add class to page content to unify top margin Previously pages would individually set this margin but some didn't so content would stick to the header without any space. Resolve this by adding a new class that is added on all pages. The only place where we remove this margin again is on the pages with menu or wrapper in the header. * fix admin notices * fix team pages * fix loading segment on gitgraph for arc-green * fix last missing case Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/org')
-rw-r--r--templates/org/create.tmpl2
-rw-r--r--templates/org/home.tmpl2
-rw-r--r--templates/org/member/members.tmpl2
-rw-r--r--templates/org/settings/delete.tmpl2
-rw-r--r--templates/org/settings/hook_new.tmpl2
-rw-r--r--templates/org/settings/hooks.tmpl2
-rw-r--r--templates/org/settings/labels.tmpl2
-rw-r--r--templates/org/settings/options.tmpl2
-rw-r--r--templates/org/team/members.tmpl2
-rw-r--r--templates/org/team/new.tmpl2
-rw-r--r--templates/org/team/repositories.tmpl2
-rw-r--r--templates/org/team/teams.tmpl2
12 files changed, 12 insertions, 12 deletions
diff --git a/templates/org/create.tmpl b/templates/org/create.tmpl
index 82c8766a95..24a641a73a 100644
--- a/templates/org/create.tmpl
+++ b/templates/org/create.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization new org">
+<div class="page-content organization new org">
<div class="ui middle very relaxed page grid">
<div class="column">
<form class="ui form" action="{{.Link}}" method="post">
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index 12630b70d7..54474965bd 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization profile mt-5">
+<div class="page-content organization profile">
{{/* overflow: auto is the clearfix - this avoids the image going beyond
the container where it is supposed to stay inside. */}}
<div class="ui container" style="overflow: auto">
diff --git a/templates/org/member/members.tmpl b/templates/org/member/members.tmpl
index f33f9be927..1a168da133 100644
--- a/templates/org/member/members.tmpl
+++ b/templates/org/member/members.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization members">
+<div class="page-content organization members">
{{template "org/header" .}}
<div class="ui container">
{{template "base/alert" .}}
diff --git a/templates/org/settings/delete.tmpl b/templates/org/settings/delete.tmpl
index a8d42b5476..9743d71cbf 100644
--- a/templates/org/settings/delete.tmpl
+++ b/templates/org/settings/delete.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization settings delete">
+<div class="page-content organization settings delete">
{{template "org/header" .}}
<div class="ui container">
<div class="ui grid">
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl
index 35bb1610a8..96769c7446 100644
--- a/templates/org/settings/hook_new.tmpl
+++ b/templates/org/settings/hook_new.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization settings new webhook">
+<div class="page-content organization settings new webhook">
{{template "org/header" .}}
<div class="ui container">
<div class="ui grid">
diff --git a/templates/org/settings/hooks.tmpl b/templates/org/settings/hooks.tmpl
index 825b1e941d..cb0243bb1e 100644
--- a/templates/org/settings/hooks.tmpl
+++ b/templates/org/settings/hooks.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization settings webhooks">
+<div class="page-content organization settings webhooks">
{{template "org/header" .}}
<div class="ui container">
<div class="ui grid">
diff --git a/templates/org/settings/labels.tmpl b/templates/org/settings/labels.tmpl
index ed31890df5..61302c731a 100644
--- a/templates/org/settings/labels.tmpl
+++ b/templates/org/settings/labels.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization settings labels">
+<div class="page-content organization settings labels">
{{template "org/header" .}}
<div class="ui container">
<div class="ui grid">
diff --git a/templates/org/settings/options.tmpl b/templates/org/settings/options.tmpl
index d58c77ad10..348f8cb533 100644
--- a/templates/org/settings/options.tmpl
+++ b/templates/org/settings/options.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization settings options">
+<div class="page-content organization settings options">
{{template "org/header" .}}
<div class="ui container">
<div class="ui grid">
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl
index ef595f841a..51abf4ec4f 100644
--- a/templates/org/team/members.tmpl
+++ b/templates/org/team/members.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization teams">
+<div class="page-content organization teams">
{{template "org/header" .}}
<div class="ui container">
{{template "base/alert" .}}
diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl
index eeb9b1186a..85f945c834 100644
--- a/templates/org/team/new.tmpl
+++ b/templates/org/team/new.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization new team">
+<div class="page-content organization new team">
{{template "org/header" .}}
<div class="ui middle very relaxed page grid">
<div class="column">
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index 16418b474d..3b5f1b33fb 100644
--- a/templates/org/team/repositories.tmpl
+++ b/templates/org/team/repositories.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization teams">
+<div class="page-content organization teams">
{{template "org/header" .}}
<div class="ui container">
{{template "base/alert" .}}
diff --git a/templates/org/team/teams.tmpl b/templates/org/team/teams.tmpl
index e4be11ee52..0fae4eb6cf 100644
--- a/templates/org/team/teams.tmpl
+++ b/templates/org/team/teams.tmpl
@@ -1,5 +1,5 @@
{{template "base/head" .}}
-<div class="organization teams">
+<div class="page-content organization teams">
{{template "org/header" .}}
<div class="ui container">
{{template "base/alert" .}}