summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-06-21 09:41:44 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-06-21 09:43:00 +0200
commit83f4735b57f5c2e679c5379c3ecd29fadf3ddb22 (patch)
tree347cf737ba95bd42b2a4440df32257b7a1914c7a /app
parentd1e424bd5c403d73d399bf0f92e39aefde56e638 (diff)
downloadgitlab-ce-83f4735b57f5c2e679c5379c3ecd29fadf3ddb22.tar.gz
Replace HTML5 obsolete center element with CSS.
Fix #6901. Would generate invalid HTML5.
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/generic/common.scss1
-rw-r--r--app/views/layouts/devise.html.haml2
-rw-r--r--app/views/layouts/errors.html.haml2
-rw-r--r--app/views/projects/blob/_download.html.haml2
-rw-r--r--app/views/projects/compare/show.html.haml2
-rw-r--r--app/views/projects/edit.html.haml2
-rw-r--r--app/views/projects/edit_tree/show.html.haml2
-rw-r--r--app/views/projects/graphs/show.html.haml2
-rw-r--r--app/views/projects/import.html.haml4
-rw-r--r--app/views/projects/merge_requests/_new_compare.html.haml2
-rw-r--r--app/views/projects/new.html.haml2
11 files changed, 12 insertions, 11 deletions
diff --git a/app/assets/stylesheets/generic/common.scss b/app/assets/stylesheets/generic/common.scss
index da2c1b0cbd8..e29eb667d47 100644
--- a/app/assets/stylesheets/generic/common.scss
+++ b/app/assets/stylesheets/generic/common.scss
@@ -16,6 +16,7 @@
.append-bottom-15 { margin-bottom:15px }
.append-bottom-20 { margin-bottom:20px }
.inline { display: inline-block }
+.center { text-align: center }
.underlined-link { text-decoration: underline; }
.hint { font-style: italic; color: #999; }
diff --git a/app/views/layouts/devise.html.haml b/app/views/layouts/devise.html.haml
index 5d93ffa50ad..36c682c48a6 100644
--- a/app/views/layouts/devise.html.haml
+++ b/app/views/layouts/devise.html.haml
@@ -5,7 +5,7 @@
= render "layouts/flash"
.container
.content
- %center
+ .center
%h1 GitLab
%p.light
GitLab is open source software to collaborate on code.
diff --git a/app/views/layouts/errors.html.haml b/app/views/layouts/errors.html.haml
index df2350b1535..3e05746f837 100644
--- a/app/views/layouts/errors.html.haml
+++ b/app/views/layouts/errors.html.haml
@@ -6,5 +6,5 @@
= render "layouts/flash"
.container
.content
- %center.padded.prepend-top-20
+ .center.padded.prepend-top-20
= yield
diff --git a/app/views/projects/blob/_download.html.haml b/app/views/projects/blob/_download.html.haml
index ff317f90209..cdbfee7cc68 100644
--- a/app/views/projects/blob/_download.html.haml
+++ b/app/views/projects/blob/_download.html.haml
@@ -1,5 +1,5 @@
.file-content.blob_file.blob-no-preview
- %center
+ .center
= link_to project_raw_path(@project, @id) do
%h1.light
%i.icon-download-alt
diff --git a/app/views/projects/compare/show.html.haml b/app/views/projects/compare/show.html.haml
index 88122a73bba..b232d2a6b26 100644
--- a/app/views/projects/compare/show.html.haml
+++ b/app/views/projects/compare/show.html.haml
@@ -33,7 +33,7 @@
- else
.light-well
- %center
+ .center
%h4
There isn't anything to compare.
%p.slead
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml
index 4195a491a0f..6eaa3e7559a 100644
--- a/app/views/projects/edit.html.haml
+++ b/app/views/projects/edit.html.haml
@@ -183,7 +183,7 @@
.nothing-here-block Only project owner can remove a project
.save-project-loader.hide
- %center
+ .center
%h2
%i.icon-spinner.icon-spin
Saving project.
diff --git a/app/views/projects/edit_tree/show.html.haml b/app/views/projects/edit_tree/show.html.haml
index 32a6d4ef36e..16fc1ab1f91 100644
--- a/app/views/projects/edit_tree/show.html.haml
+++ b/app/views/projects/edit_tree/show.html.haml
@@ -18,7 +18,7 @@
.file-content.code
%pre.js-edit-mode-pane#editor= @blob.data
.js-edit-mode-pane#preview.hide
- %center
+ .center
%h2
%i.icon-spinner.icon-spin
diff --git a/app/views/projects/graphs/show.html.haml b/app/views/projects/graphs/show.html.haml
index 27348232ba2..8e4548f26d0 100644
--- a/app/views/projects/graphs/show.html.haml
+++ b/app/views/projects/graphs/show.html.haml
@@ -1,5 +1,5 @@
.loading-graph
- %center
+ .center
%h3.page-title
%i.icon-spinner.icon-spin
Building repository graph.
diff --git a/app/views/projects/import.html.haml b/app/views/projects/import.html.haml
index d11372be61b..f883b24fc21 100644
--- a/app/views/projects/import.html.haml
+++ b/app/views/projects/import.html.haml
@@ -1,6 +1,6 @@
- if @project.import_in_progress?
.save-project-loader
- %center
+ .center
%h2
%i.icon-spinner.icon-spin
Import in progress.
@@ -11,7 +11,7 @@
- elsif @project.import_failed?
.save-project-loader
- %center
+ .center
%h2
Import failed. Retry?
%hr
diff --git a/app/views/projects/merge_requests/_new_compare.html.haml b/app/views/projects/merge_requests/_new_compare.html.haml
index f8f14a71a11..18e3f419c72 100644
--- a/app/views/projects/merge_requests/_new_compare.html.haml
+++ b/app/views/projects/merge_requests/_new_compare.html.haml
@@ -39,7 +39,7 @@
%p We can't compare selected branches. It may be because of huge diff or satellite timeout. Please try again or select different branches.
- else
.light-well
- %center
+ .center
%h4
There isn't anything to merge.
%p.slead
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml
index 5d5637c1588..7efaf5a087b 100644
--- a/app/views/projects/new.html.haml
+++ b/app/views/projects/new.html.haml
@@ -72,7 +72,7 @@
Create a group
.save-project-loader.hide
- %center
+ .center
%h2
%i.icon-spinner.icon-spin
Creating project &amp; repository.