gitlabhq/app/views/layouts/profile.html.haml

29 lines
1.2 KiB
Plaintext
Raw Normal View History

2011-11-02 16:21:17 +01:00
!!!
%html
%head
%title
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
= 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"]}";
2011-11-03 23:37:02 +01:00
%body{ :class => body_class('project-page'), :id => yield(:boyd_id)}
2011-11-02 16:21:17 +01:00
#container
= render :partial => "layouts/flash"
= render :partial => "layouts/head_panel"
.project-container
.project-sidebar
.fixed
%aside
= link_to "Profile", profile_path, :class => current_page?(:controller => "profile", :action => :show) ? "current" : nil
2011-11-15 14:08:20 +01:00
= link_to "Password & token", profile_password_path, :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil
2011-11-15 09:34:30 +01:00
= link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do
2011-11-02 16:21:17 +01:00
Keys
- unless current_user.keys.empty?
%span{ :class => "number" }= current_user.keys.count
.project-content
= yield