layout refactored
This commit is contained in:
parent
fcd92f9d95
commit
fbd5296e32
7 changed files with 32 additions and 73 deletions
17
app/views/layouts/_head.html.haml
Normal file
17
app/views/layouts/_head.html.haml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
%head
|
||||||
|
%meta{:charset => "utf-8"}
|
||||||
|
%title
|
||||||
|
GitLab
|
||||||
|
= " - #{@project.name}" if @project && !@project.new_record?
|
||||||
|
= favicon_link_tag 'favicon.ico'
|
||||||
|
= stylesheet_link_tag "application"
|
||||||
|
= javascript_include_tag "application"
|
||||||
|
|
||||||
|
-# Atom feed
|
||||||
|
- if @project && !@project.new_record?
|
||||||
|
- if current_page?(tree_project_ref_path(@project, @project.root_ref)) || current_page?(project_commits_path(@project))
|
||||||
|
= auto_discovery_link_tag(:atom, project_commits_url(@project, :atom, :ref => @ref, :private_token => current_user.private_token), :title => "Recent commits to #{@project.name}:#{@ref}")
|
||||||
|
- if request.path == project_issues_path(@project)
|
||||||
|
= auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues")
|
||||||
|
= csrf_meta_tags
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
!!!
|
!!! 5
|
||||||
%html
|
%html{ :lang => "en"}
|
||||||
%head
|
= render "layouts/head"
|
||||||
%meta{:charset => "utf-8"}
|
|
||||||
%title
|
|
||||||
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
|
|
||||||
= favicon_link_tag 'favicon.ico'
|
|
||||||
= stylesheet_link_tag "application"
|
|
||||||
= javascript_include_tag "application"
|
|
||||||
= csrf_meta_tags
|
|
||||||
= javascript_tag do
|
|
||||||
REQ_URI = "#{request.env["REQUEST_URI"]}";
|
|
||||||
REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
|
|
||||||
%body.admin
|
%body.admin
|
||||||
= render :partial => "layouts/flash"
|
= render :partial => "layouts/flash"
|
||||||
= render :partial => "layouts/head_panel"
|
= render :partial => "layouts/head_panel"
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
!!!
|
!!! 5
|
||||||
%html
|
%html{ :lang => "en"}
|
||||||
%head
|
= render "layouts/head"
|
||||||
%meta{:charset => "utf-8"}
|
|
||||||
%title
|
|
||||||
GitLab
|
|
||||||
= favicon_link_tag 'favicon.ico'
|
|
||||||
= stylesheet_link_tag "application"
|
|
||||||
= javascript_include_tag "application"
|
|
||||||
= csrf_meta_tags
|
|
||||||
%body.application
|
%body.application
|
||||||
= render :partial => "layouts/flash"
|
= render :partial => "layouts/flash"
|
||||||
= render :partial => "layouts/head_panel"
|
= render :partial => "layouts/head_panel"
|
||||||
|
|
|
@ -1,16 +1,6 @@
|
||||||
!!!
|
!!! 5
|
||||||
%html
|
%html{ :lang => "en"}
|
||||||
%head
|
= render "layouts/head"
|
||||||
%meta{:charset => "utf-8"}
|
|
||||||
%title
|
|
||||||
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
|
|
||||||
= favicon_link_tag 'favicon.ico'
|
|
||||||
= stylesheet_link_tag "application"
|
|
||||||
= javascript_include_tag "application"
|
|
||||||
= csrf_meta_tags
|
|
||||||
= javascript_tag do
|
|
||||||
REQ_URI = "#{request.env["REQUEST_URI"]}";
|
|
||||||
REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
|
|
||||||
%body.login-page
|
%body.login-page
|
||||||
= render :partial => "layouts/flash"
|
= render :partial => "layouts/flash"
|
||||||
.container-fluid= yield
|
.container-fluid= yield
|
||||||
|
|
|
@ -1,13 +1,6 @@
|
||||||
!!!
|
!!! 5
|
||||||
%html
|
%html{ :lang => "en"}
|
||||||
%head
|
= render "layouts/head"
|
||||||
%meta{:charset => "utf-8"}
|
|
||||||
%title
|
|
||||||
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
|
|
||||||
= favicon_link_tag 'favicon.ico'
|
|
||||||
= stylesheet_link_tag "application"
|
|
||||||
= javascript_include_tag "application"
|
|
||||||
= csrf_meta_tags
|
|
||||||
%body.profile
|
%body.profile
|
||||||
= render :partial => "layouts/flash"
|
= render :partial => "layouts/flash"
|
||||||
= render :partial => "layouts/head_panel"
|
= render :partial => "layouts/head_panel"
|
||||||
|
|
|
@ -1,18 +1,6 @@
|
||||||
!!!
|
!!! 5
|
||||||
%html
|
%html{ :lang => "en"}
|
||||||
%head
|
= render "layouts/head"
|
||||||
%meta{:charset => "utf-8"}
|
|
||||||
%title
|
|
||||||
GitLab
|
|
||||||
= " - #{@project.name}" if @project && !@project.new_record?
|
|
||||||
= favicon_link_tag 'favicon.ico'
|
|
||||||
= stylesheet_link_tag "application"
|
|
||||||
= javascript_include_tag "application"
|
|
||||||
- if current_page?(tree_project_ref_path(@project, @project.root_ref)) || current_page?(project_commits_path(@project))
|
|
||||||
= auto_discovery_link_tag(:atom, project_commits_url(@project, :atom, :ref => @ref, :private_token => current_user.private_token), :title => "Recent commits to #{@project.name}:#{@ref}")
|
|
||||||
- if request.path == project_issues_path(@project)
|
|
||||||
= auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues")
|
|
||||||
= csrf_meta_tags
|
|
||||||
%body.project
|
%body.project
|
||||||
= render :partial => "layouts/flash"
|
= render :partial => "layouts/flash"
|
||||||
= render :partial => "layouts/head_panel"
|
= render :partial => "layouts/head_panel"
|
||||||
|
|
12
db/schema.rb
12
db/schema.rb
|
@ -13,18 +13,6 @@
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20120206170141) do
|
ActiveRecord::Schema.define(:version => 20120206170141) do
|
||||||
|
|
||||||
create_table "features", :force => true do |t|
|
|
||||||
t.string "name"
|
|
||||||
t.string "branch_name"
|
|
||||||
t.integer "assignee_id"
|
|
||||||
t.integer "author_id"
|
|
||||||
t.integer "project_id"
|
|
||||||
t.datetime "created_at"
|
|
||||||
t.datetime "updated_at"
|
|
||||||
t.string "version"
|
|
||||||
t.integer "status", :default => 0, :null => false
|
|
||||||
end
|
|
||||||
|
|
||||||
create_table "issues", :force => true do |t|
|
create_table "issues", :force => true do |t|
|
||||||
t.string "title"
|
t.string "title"
|
||||||
t.integer "assignee_id"
|
t.integer "assignee_id"
|
||||||
|
|
Loading…
Add table
Reference in a new issue