v1.0
This commit is contained in:
parent
0f43e98ef8
commit
d378468794
317 changed files with 11347 additions and 0 deletions
18
app/views/layouts/_flash.html.haml
Normal file
18
app/views/layouts/_flash.html.haml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- if alert || notice
|
||||
- text = alert || notice
|
||||
%div{:style => "display:none", :id => "flash_container"}
|
||||
.container
|
||||
%center
|
||||
%h4= text
|
||||
:javascript
|
||||
$(function(){
|
||||
$("#flash_container").slideDown("slow");
|
||||
$("#flash_container").click(function(){
|
||||
$(this).slideUp("slow");
|
||||
});
|
||||
setTimeout("hideFlash()",2000);
|
||||
});
|
||||
|
||||
function hideFlash(){
|
||||
$("#flash_container").slideUp("slow");
|
||||
}
|
34
app/views/layouts/_head_panel.html.erb
Normal file
34
app/views/layouts/_head_panel.html.erb
Normal file
|
@ -0,0 +1,34 @@
|
|||
<div id="header-panel">
|
||||
<div class="container">
|
||||
<div class="span-24">
|
||||
<div class="span-10">
|
||||
<%#= image_tag "git.png", :height => 40, :class => "left" %>
|
||||
<%#= link_to "gitlab", root_path, :id => "logo" %>
|
||||
<span class="search-holder">
|
||||
<%= text_field_tag "search", nil, :placeholder => "Search" %>
|
||||
</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<%= link_to truncate(@project.name, :length => 20), project_path(@project), :class => "current button" if @project && !@project.new_record? %>
|
||||
<%= link_to 'Home', root_path, :class => current_page?(root_url) ? "current button" : "button" %>
|
||||
<%= link_to 'Projects', projects_path, :class => current_page?(projects_path) ? "current button" : "button" %>
|
||||
<%= link_to 'Profile', profile_path, :class => (controller.controller_name == "keys") ? "current button" : "button" %>
|
||||
<%= link_to('Admin', admin_root_path, :class => admin_namespace? ? "current button" : "button" ) if current_user.is_admin? %>
|
||||
<%#= link_to 'Profile', edit_user_registration_path, :class => "button" %>
|
||||
<%= link_to 'Logout', destroy_user_session_path, :class => "button", :method => :delete %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<% if current_user %>
|
||||
<%= javascript_tag do %>
|
||||
$(function() {
|
||||
$("#search" ).autocomplete({
|
||||
source: <%= raw search_autocomplete_source %>,
|
||||
select: function(event, ui) { location.href = ui.item.url }
|
||||
});
|
||||
});
|
||||
<% end %>
|
||||
<% end %>
|
29
app/views/layouts/application.html.haml
Normal file
29
app/views/layouts/application.html.haml
Normal file
|
@ -0,0 +1,29 @@
|
|||
!!!
|
||||
%html
|
||||
%head
|
||||
%title
|
||||
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
|
||||
= stylesheet_link_tag 'blueprint/screen', :media => "screen, projection"
|
||||
= stylesheet_link_tag 'blueprint/print', :media => "print"
|
||||
= stylesheet_link_tag 'blueprint/plugins/buttons/screen', :media => "screen, projection"
|
||||
= stylesheet_link_tag 'blueprint/plugins/link-icons/screen', :media => "screen, projection"
|
||||
= stylesheet_link_tag 'jquery_ui/jquery-ui-1.8.16.custom', :media => "screen, projection"
|
||||
= stylesheet_link_tag "application"
|
||||
= javascript_include_tag "application"
|
||||
= csrf_meta_tags
|
||||
%link{:href => "/assets/favicon.png", :rel => "icon", :type => "image/png"}/
|
||||
= javascript_tag do
|
||||
REQ_URI = "#{request.env["REQUEST_URI"]}";
|
||||
REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
|
||||
%body#thebody
|
||||
= render :partial => "layouts/flash"
|
||||
- if user_signed_in?
|
||||
= render :partial => "layouts/head_panel"
|
||||
.top_bar.container
|
||||
= render :partial => "projects/top_menu" if @project && !@project.new_record?
|
||||
= render :partial => "projects/projects_top_menu" if (controller.controller_name == "projects" && ["index", "new", "create"].include?(controller.action_name)) && !admin_namespace?
|
||||
= render :partial => "profile/top_menu" if ["keys", "profile"].include?(controller.controller_name)
|
||||
= render :partial => "admin/top_menu" if admin_namespace?
|
||||
#content-container.container
|
||||
.span-24
|
||||
= yield
|
36
app/views/layouts/notify.html.haml
Normal file
36
app/views/layouts/notify.html.haml
Normal file
|
@ -0,0 +1,36 @@
|
|||
%html{:lang => "en"}
|
||||
%head
|
||||
%meta{:content => "text/html; charset=utf-8", "http-equiv" => "Content-Type"}
|
||||
%title
|
||||
gitlabhq
|
||||
:css
|
||||
.header h1 {color: #BBBBBB !important; font: bold 32px Helvetica, Arial, sans-serif; margin: 0; padding: 0; line-height: 40px;}
|
||||
.header p {color: #c6c6c6; font: normal 12px Helvetica, Arial, sans-serif; margin: 0; padding: 0; line-height: 18px;}
|
||||
.content h2 {color:#646464 !important; font-weight: bold; margin: 0; padding: 0; line-height: 26px; font-size: 18px; font-family: Helvetica, Arial, sans-serif; }
|
||||
.content p {color:#767676; font-weight: normal; margin: 0; padding: 0; line-height: 20px; font-size: 12px;font-family: Helvetica, Arial, sans-serif;}
|
||||
.content a {color: #0eb6ce; text-decoration: none;}
|
||||
.footer p {font-size: 11px; color:#7d7a7a; margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif;}
|
||||
.footer a {color: #0eb6ce; text-decoration: none;}
|
||||
%body{:bgcolor => "#EAEAEA", :style => "margin: 0; padding: 0; background: #EAEAEA"}
|
||||
%table{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :style => "padding: 35px 0; background: #EAEAEA;", :width => "100%"}
|
||||
%tr
|
||||
%td{:align => "center", :style => "margin: 0; padding: 0; background: #EAEAEA;"}
|
||||
%table.header{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :style => "font-family: Helvetica, Arial, sans-serif; background:#333", :width => "600"}
|
||||
%tr
|
||||
%td{:style => "font-size: 0px;", :width => "20"}
|
||||
\
|
||||
%td{:align => "left", :style => "padding: 18px 0 10px;", :width => "580"}
|
||||
%h1{:style => "color: #BBBBBB; font: normal 32px Helvetica, Arial, sans-serif; margin: 0; padding: 0; line-height: 40px;"}
|
||||
gitlab
|
||||
- if @project
|
||||
| #{@project.name}
|
||||
%table{:align => "center", :bgcolor => "#fff", :border => "0", :cellpadding => "0", :cellspacing => "0", :style => "font-family: Helvetica, Arial, sans-serif; background: #fff;", :width => "600"}
|
||||
%tr= yield
|
||||
%tr
|
||||
%td{:align => "left", :colspan => "2", :height => "3", :style => "padding: font-size: 0; line-height: 0; height: 3px;", :width => "600"}
|
||||
%table.footer{:align => "center", :border => "0", :cellpadding => "0", :cellspacing => "0", :style => "font-family: Helvetica, Arial, sans-serif; line-height: 10px;", :width => "600"}
|
||||
%tr
|
||||
%td{:align => "center", :style => "padding: 5px 0 10px; font-size: 11px; color:#7d7a7a; margin: 0; line-height: 1.2;font-family: Helvetica, Arial, sans-serif;", :valign => "top"}
|
||||
%br
|
||||
%p{:style => "font-size: 11px; color:#7d7a7a; margin: 0; padding: 0; font-family: Helvetica, Arial, sans-serif;"}
|
||||
You're receiving this newsletter because you are in project team.
|
Loading…
Add table
Add a link
Reference in a new issue