Commit 36fd4de8251cb265244320e67d3d5a3420712a85

Authored by Dmitriy Zaporozhets
1 parent 8b1d44f7

Replace page_title with page-title. Correct margin for some blocks/layouts

Showing 87 changed files with 96 additions and 110 deletions   Show diff stats
app/assets/stylesheets/common.scss
... ... @@ -23,12 +23,8 @@ body {
23 23  
24 24 .help li { color:$style_color; }
25 25  
26   -.back_link {
27   - text-decoration: underline;
  26 +.back-link {
28 27 font-size: 14px;
29   - font-weight: bold;
30   - padding: 10px 0;
31   - padding-bottom: 0;
32 28 }
33 29  
34 30 table a code {
... ... @@ -412,7 +408,7 @@ img.emoji {
412 408 }
413 409  
414 410 .navless-container {
415   - margin-top: 30px;
  411 + margin-top: 20px;
416 412 }
417 413  
418 414 .description-block {
... ...
app/assets/stylesheets/gitlab_bootstrap/blocks.scss
... ... @@ -11,7 +11,7 @@
11 11 */
12 12 .ui-box {
13 13 background: #F9F9F9;
14   - margin-bottom: 25px;
  14 + margin-bottom: 20px;
15 15 border: 1px solid #CCC;
16 16 word-wrap: break-word;
17 17 @include solid-shade;
... ...
app/assets/stylesheets/gitlab_bootstrap/typography.scss
... ... @@ -7,11 +7,12 @@ h1, h2, h3, h4, h5, h6 { margin: 0; }
7 7 h3, h4, h5, h6 { line-height: 36px; }
8 8 h5 { font-size: 14px; }
9 9  
10   -h3.page_title {
  10 +h3.page-title {
11 11 color: #456;
12 12 font-size: 20px;
13 13 font-weight: normal;
14 14 line-height: 28px;
  15 + margin-bottom: 15px;
15 16 }
16 17  
17 18 h6 {
... ...
app/assets/stylesheets/sections/nav.scss
1 1 .main-nav {
2 2 background: #f5f5f5;
3   - margin: 30px 0;
  3 + margin: 20px 0;
4 4 margin-top: 0;
5 5 padding-top: 4px;
6 6 border-bottom: 1px solid #E1E1E1;
... ...
app/assets/stylesheets/sections/projects.scss
... ... @@ -48,7 +48,7 @@
48 48 margin-bottom: 50px;
49 49 }
50 50 h3 {
51   - @extend .page_title;
  51 + @extend .page-title;
52 52 }
53 53  
54 54 }
... ...
app/assets/stylesheets/sections/votes.scss
... ... @@ -27,7 +27,7 @@
27 27 }
28 28 }
29 29 .votes-block {
30   - margin: 14px 6px 6px 0;
  30 + margin: 6px;
31 31 .downvotes {
32 32 float: right;
33 33 }
... ...
app/assets/stylesheets/sections/wiki.scss
1   -h3.page_title .edit-wiki-header {
  1 +h3.page-title .edit-wiki-header {
2 2 width: 780px;
3 3 margin-left: auto;
4 4 margin-right: auto;
... ...
app/views/admin/background_jobs/show.html.haml
1   -%h3.page_title Background Jobs
  1 +%h3.page-title Background Jobs
2 2 %br
3 3 .ui-box
4 4 %iframe{src: sidekiq_path, width: '100%', height: 900, style: "border: none"}
... ...
app/views/admin/groups/edit.html.haml
1   -%h3.page_title Edit Group
  1 +%h3.page-title Edit Group
2 2 %hr
3 3 = form_for [:admin, @group] do |f|
4 4 - if @group.errors.any?
... ...
app/views/admin/groups/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Groups (#{@groups.total_count})
3 3 %small
4 4 allows you to keep projects organized.
... ...
app/views/admin/groups/new.html.haml
1   -%h3.page_title New Group
  1 +%h3.page-title New Group
2 2 %hr
3 3 = form_for [:admin, @group] do |f|
4 4 - if @group.errors.any?
... ...
app/views/admin/groups/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Group: #{@group.name}
3 3  
4 4 = link_to edit_admin_group_path(@group), class: "btn btn-small pull-right" do
... ...
app/views/admin/projects/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Projects
3 3 = link_to 'New Project', new_project_path, class: "btn btn-small pull-right"
4 4  
... ...
app/views/admin/projects/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Project: #{@project.name_with_namespace}
3 3 = link_to edit_project_path(@project), class: "btn pull-right" do
4 4 %i.icon-edit
... ...
app/views/admin/users/edit.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 #{@user.name} →
3 3 %i.icon-edit
4 4 Edit user
... ...
app/views/admin/users/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Users
3 3 = link_to 'New User', new_admin_user_path, class: "btn btn-small pull-right"
4 4 %br
... ...
app/views/admin/users/new.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 %i.icon-plus
3 3 New user
4 4 %hr
... ...
app/views/admin/users/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 User:
3 3 = @user.name
4 4 - if @user.blocked?
... ...
app/views/dashboard/issues.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Issues
3 3 %span.light
4 4 –
5 5 Assigned to you
6 6 %span.pull-right #{@issues.total_count} issues
7 7  
8   -%br
9   -
10 8 .row
11 9 .span3
12 10 = render 'filter', entity: 'issue'
... ...
app/views/dashboard/merge_requests.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Merge Requests
3 3 %span.light
4 4 –
5 5 Authored by or assigned to you
6 6 %span.pull-right #{@merge_requests.total_count} merge requests
7 7  
8   -%br
9 8 .row
10 9 .span3
11 10 = render 'filter', entity: 'merge_request'
... ...
app/views/devise/passwords/new.html.haml
1 1 = form_for(resource, as: resource_name, url: password_path(resource_name), html: { class: "login-box", method: :post }) do |f|
2   - %h3.page_title Reset password
  2 + %h3.page-title Reset password
3 3 %br
4 4 = devise_error_messages!
5 5 = f.email_field :email, placeholder: "Email", class: "text"
... ...
app/views/devise/registrations/new.html.haml
1 1 = form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: "login-box" }) do |f|
2   - %h3.page_title Sign Up
  2 + %h3.page-title Sign Up
3 3 %br
4 4 = devise_error_messages!
5 5 %div
... ...
app/views/devise/sessions/new.html.haml
1 1 .login-box
2   - %h3.page_title Sign in
  2 + %h3.page-title Sign in
3 3 %br
4 4 - if ldap_enabled?
5 5 %ul.nav.nav-tabs
... ...
app/views/errors/access_denied.html.haml
1 1 %h1.http_status_code 403
2   -%h3.page_title Access Denied
  2 +%h3.page-title Access Denied
3 3 %hr
4 4 %p You are not allowed to access this page.
5 5 %p Read more about project permissions #{link_to "here", help_permissions_path, class: "vlink"}
... ...
app/views/errors/encoding.html.haml
1 1 %h1.http_status_code 500
2   -%h3.page_title Encoding Error
  2 +%h3.page-title Encoding Error
3 3 %hr
4 4 %p Page can't be loaded because of an encoding error.
... ...
app/views/errors/git_not_found.html.haml
1 1 %h1.http_status_code 404
2   -%h3.page_title Git Resource Not found
  2 +%h3.page-title Git Resource Not found
3 3 %hr
4 4 %p
5 5 Application can't get access to some branch or commit in your repository. It
... ...
app/views/errors/not_found.html.haml
1 1 %h1.http_status_code 404
2   -%h3.page_title The resource you were looking for doesn't exist.
  2 +%h3.page-title The resource you were looking for doesn't exist.
3 3 %hr
4 4 %p You may have mistyped the address or the page may have moved.
... ...
app/views/groups/_filter.html.haml
1 1 = form_tag group_filter_path(entity), method: 'get' do
2   - %fieldset.dashboard-search-filter
3   - = search_field_tag "search", params[:search], { placeholder: 'Search', class: 'search-text-input' }
4   - = button_tag type: 'submit', class: 'btn' do
5   - %i.icon-search
6   -
7 2 %fieldset
8   - %legend Status:
9 3 %ul.nav.nav-pills.nav-stacked
10 4 %li{class: ("active" if !params[:status])}
11 5 = link_to group_filter_path(entity, status: nil) do
... ...
app/views/groups/issues.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Issues
3 3 %small (assigned to you)
4 4 %small.pull-right #{@issues.total_count} issues
... ...
app/views/groups/merge_requests.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Merge Requests
3 3 %small (authored by or assigned to you)
4 4 %small.pull-right #{@merge_requests.total_count} merge requests
... ...
app/views/help/api.html.haml
1 1 = render layout: 'help/api_layout' do
2   - %h3.page_title
  2 + %h3.page-title
3 3 %span.light API
4 4 %span
5 5 \/
... ...
app/views/help/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 GITLAB
3 3 .pull-right
4 4 %span= Gitlab::VERSION
... ...
app/views/help/markdown.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title GitLab Flavored Markdown
  2 + %h3.page-title GitLab Flavored Markdown
3 3 %br
4 4  
5 5 .help_body
... ...
app/views/help/permissions.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title Permissions
  2 + %h3.page-title Permissions
3 3 %br
4 4  
5 5 %fieldset
... ...
app/views/help/public_access.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title Public Access
  2 + %h3.page-title Public Access
3 3 %br
4 4  
5 5 %p
... ...
app/views/help/raketasks.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title GitLab Rake Tasks
  2 + %h3.page-title GitLab Rake Tasks
3 3 %br
4 4  
5 5 %p.slead
... ...
app/views/help/ssh.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title SSH Keys
  2 + %h3.page-title SSH Keys
3 3 %br
4 4  
5 5 %p.slead
... ...
app/views/help/system_hooks.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title System hooks
  2 + %h3.page-title System hooks
3 3 %br
4 4  
5 5 %p.slead
... ...
app/views/help/web_hooks.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title Web hooks
  2 + %h3.page-title Web hooks
3 3 %br
4 4  
5 5 %p.slead
... ...
app/views/help/workflow.html.haml
1 1 = render layout: 'help/layout' do
2   - %h3.page_title Workflow
  2 + %h3.page-title Workflow
3 3 %br
4 4  
5 5 %ol.help
... ...
app/views/layouts/_page_title.html.haml
1   -- if content_for?(:page_title)
2   - = yield :page_title
  1 +- if content_for?(:page-title)
  2 + = yield :page-title
... ...
app/views/profiles/keys/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 SSH Keys
3 3 = link_to "Add SSH Key", new_profile_key_path, class: "btn pull-right btn-primary"
4 4  
... ...
app/views/profiles/keys/new.html.haml
1   -%h3.page_title Add an SSH Key
  1 +%h3.page-title Add an SSH Key
2 2 %hr
3 3 = render 'form'
4 4  
... ...
app/views/profiles/notifications/show.html.haml
1   -%h3.page_title Setup your notification level
  1 +%h3.page-title Setup your notification level
2 2  
3 3 %br
4 4  
... ...
app/views/profiles/show.html.haml
1 1 .profile_avatar_holder
2 2 = image_tag gravatar_icon(@user.email, 90), alt: ''
3   -%h3.page_title
  3 +%h3.page-title
4 4 = @user.name
5 5 %br
6 6 %small
... ...
app/views/projects/commit/_commit_box.html.haml
... ... @@ -15,7 +15,7 @@
15 15 %li= link_to "Plain Diff", project_commit_path(@project, @commit, format: :diff)
16 16 = link_to project_tree_path(@project, @commit), class: "btn btn-primary grouped" do
17 17 %span Browse Code »
18   - %h3.commit-title.page_title
  18 + %h3.commit-title.page-title
19 19 = gfm escape_once(@commit.title)
20 20 - if @commit.description.present?
21 21 %pre.commit-description
... ...
app/views/projects/compare/index.html.haml
1 1 = render "projects/commits/head"
2 2  
3   -%h3.page_title
  3 +%h3.page-title
4 4 Compare View
5 5 %hr
6 6  
... ...
app/views/projects/compare/show.html.haml
1 1 = render "projects/commits/head"
2 2  
3   -%h3.page_title
  3 +%h3.page-title
4 4 Compare View
5 5 %hr
6 6  
... ...
app/views/projects/deploy_keys/new.html.haml
1   -%h3.page_title New Deploy key
  1 +%h3.page-title New Deploy key
2 2 %hr
3 3  
4 4 = render 'form'
... ...
app/views/projects/deploy_keys/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Deploy key:
3 3 = @key.title
4 4 %small
5 5 created at
6 6 = @key.created_at.stamp("Aug 21, 2011")
7   -.back_link
  7 +.back-link
8 8 = link_to project_deploy_keys_path(@project) do
9 9 ← To keys list
10 10 %hr
... ...
app/views/projects/graphs/show.html.haml
1 1 .loading-graph
2 2 %center
3 3 .loading
4   - %h3.page_title Building repository graph. Please wait a moment.
  4 + %h3.page-title Building repository graph. Please wait a moment.
5 5  
6 6 .stat-graph
7 7 .header.clearfix
... ... @@ -10,7 +10,7 @@
10 10 %option{:value => "commits"} Commits
11 11 %option{:value => "additions"} Additions
12 12 %option{:value => "deletions"} Deletions
13   - %h3#date_header.page_title
  13 + %h3#date_header.page-title
14 14 %input#brush_change{:type => "hidden"}
15 15 .graphs
16 16 #contributors-master
... ...
app/views/projects/issues/_form.html.haml
1 1 %div.issue-form-holder
2   - %h3.page_title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
  2 + %h3.page-title= @issue.new_record? ? "New Issue" : "Edit Issue ##{@issue.id}"
3 3 = form_for [@project, @issue] do |f|
4 4 -if @issue.errors.any?
5 5 .alert.alert-error
... ...
app/views/projects/issues/index.html.haml
1 1 = render "head"
2 2 .issues_content
3   - %h3.page_title
  3 + %h3.page-title
4 4 Issues
5 5 %span (<span class=issue_counter>#{@issues.total_count}</span>)
6 6 .pull-right
... ... @@ -16,8 +16,6 @@
16 16 = hidden_field_tag :label_name, params[:label_name], id: 'search_label_name'
17 17 = search_field_tag :issue_search, nil, { placeholder: 'Search', class: 'issue_search input-xlarge append-right-10 search-text-input' }
18 18  
19   - .clearfix
20   -
21 19 .row
22 20 .span3
23 21 = render 'filter', entity: 'issue'
... ...
app/views/projects/issues/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Issue ##{@issue.id}
3 3  
4 4 %small
... ... @@ -22,7 +22,7 @@
22 22 .pull-right
23 23 .span3#votes= render 'votes/votes_block', votable: @issue
24 24  
25   -.back_link
  25 +.back-link
26 26 = link_to project_issues_path(@project) do
27 27 &larr; To issues list
28 28  
... ...
app/views/projects/labels/index.html.haml
1 1 = render "projects/issues/head"
2 2  
3   -%h3.page_title
  3 +%h3.page-title
4 4 Labels
5 5 %br
6 6  
... ...
app/views/projects/merge_requests/edit.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = "Edit merge request #{@merge_request.id}"
3 3 %hr
4 4 = render 'form'
... ...
app/views/projects/merge_requests/index.html.haml
... ... @@ -2,7 +2,7 @@
2 2 = link_to new_project_merge_request_path(@project), class: "pull-right btn btn-primary", title: "New Merge Request" do
3 3 %i.icon-plus
4 4 New Merge Request
5   -%h3.page_title
  5 +%h3.page-title
6 6 Merge Requests
7 7  
8 8 %br
... ...
app/views/projects/merge_requests/new.html.haml
1   -%h3.page_title New Merge Request
  1 +%h3.page-title New Merge Request
2 2 %hr
3 3 = render 'form'
... ...
app/views/projects/merge_requests/show/_mr_title.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = "Merge Request ##{@merge_request.id}:"
3 3 &nbsp;
4 4 %span.label-branch= @merge_request.source_branch
... ... @@ -26,6 +26,6 @@
26 26 .pull-right
27 27 .span3#votes= render 'votes/votes_block', votable: @merge_request
28 28  
29   -.back_link
  29 +.back-link
30 30 = link_to project_merge_requests_path(@project) do
31 31 &larr; To merge requests
... ...
app/views/projects/milestones/_form.html.haml
1   -%h3.page_title= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.id}"
2   -.back_link
  1 +%h3.page-title= @milestone.new_record? ? "New Milestone" : "Edit Milestone ##{@milestone.id}"
  2 +.back-link
3 3 = link_to project_milestones_path(@project) do
4 4 &larr; To milestones
5 5  
... ...
app/views/projects/milestones/index.html.haml
1 1 = render "projects/issues/head"
2 2 .milestones_content
3   - %h3.page_title
  3 + %h3.page-title
4 4 Milestones
5 5 - if can? current_user, :admin_milestone, @project
6 6 = link_to new_project_milestone_path(@project), class: "pull-right btn btn-primary", title: "New Milestone" do
... ...
app/views/projects/milestones/show.html.haml
1 1 = render "projects/issues/head"
2 2 .row
3 3 .span6
4   - %h3.page_title
  4 + %h3.page-title
5 5 Milestone ##{@milestone.id}
6 6 %small
7 7 = @milestone.expires_at
8   - .back_link
  8 + .back-link
9 9 = link_to project_milestones_path(@project) do
10 10 &larr; To milestones list
11 11 .span6
... ...
app/views/projects/network/_head.html.haml
1   -%h3.page_title Project Network Graph
  1 +%h3.page-title Project Network Graph
2 2 %hr
3 3  
4 4 .clearfix
... ...
app/views/projects/services/_form.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 - if @service.activated?
3 3 %span.cgreen
4 4 %i.icon-circle
... ... @@ -9,7 +9,7 @@
9 9  
10 10 %p= @service.description
11 11  
12   -.back_link
  12 +.back-link
13 13 = link_to project_services_path(@project) do
14 14 &larr; to services
15 15  
... ...
app/views/projects/services/index.html.haml
1   -%h3.page_title Services
  1 +%h3.page-title Services
2 2 %br
3 3  
4 4 %ul.bordered-list
... ...
app/views/projects/show.html.haml
... ... @@ -7,7 +7,7 @@
7 7 .loading.hide
8 8 .span3
9 9 .light-well
10   - %h3.page_title
  10 + %h3.page-title
11 11 = @project.name
12 12 - if @project.description.present?
13 13 %p.light= @project.description
... ...
app/views/projects/snippets/_form.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = @snippet.new_record? ? "New Snippet" : "Edit Snippet ##{@snippet.id}"
3 3 %hr
4 4 .snippet-form-holder
... ...
app/views/projects/snippets/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Snippets
3 3 %small share code pastes with others out of git repository
4 4  
... ...
app/views/projects/snippets/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 %i.icon-lock.cgreen
3 3 = @snippet.title
4 4  
... ...
app/views/projects/team_members/_form.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = "New Team member(s)"
3 3 %hr
4 4 = form_for @user_project_relation, as: :team_member, url: project_team_members_path(@project) do |f|
... ...
app/views/projects/team_members/import.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = "Import team from another project"
3 3 %hr
4 4 %p.slead
... ...
app/views/projects/team_members/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Users with access to this project
3 3  
4 4 - if can? current_user, :admin_team_member, @project
... ...
app/views/projects/wikis/_form.html.haml
... ... @@ -8,7 +8,7 @@
8 8  
9 9 .ui-box.ui-box-show
10 10 .ui-box-head
11   - %h3.page_title
  11 + %h3.page-title
12 12 .edit-wiki-header
13 13 = @wiki.title.titleize
14 14 = f.hidden_field :title, value: @wiki.title
... ...
app/views/projects/wikis/_new.html.haml
1 1 %div#modal-new-wiki.modal.hide
2 2 .modal-header
3 3 %a.close{href: "#"} ×
4   - %h3.page_title New Wiki Page
  4 + %h3.page-title New Wiki Page
5 5 .modal-body
6 6 = label_tag :new_wiki_path do
7 7 %span Page slug
... ...
app/views/projects/wikis/edit.html.haml
1 1 = render 'nav'
2   -%h3.page_title
  2 +%h3.page-title
3 3 Editing page
4 4 = render 'main_links'
5 5 = render 'form'
... ...
app/views/projects/wikis/empty.html.haml
1   -%h3.page_title Empty page
  1 +%h3.page-title Empty page
2 2 %hr
3 3 .error_message
4 4 You are not allowed to create wiki pages
... ...
app/views/projects/wikis/git_access.html.haml
1 1 = render 'nav'
2   -%h3.page_title
  2 +%h3.page-title
3 3 Git Access
4 4 %strong= @gollum_wiki.path_with_namespace
5 5 = render 'main_links'
... ...
app/views/projects/wikis/history.html.haml
1 1 = render 'nav'
2   -%h3.page_title
  2 +%h3.page-title
3 3 %span.light History for
4 4 = @wiki.title.titleize
5 5 = render 'main_links'
... ...
app/views/projects/wikis/pages.html.haml
1 1 = render 'nav'
2   -%h3.page_title
  2 +%h3.page-title
3 3 All Pages
4 4 = render 'main_links'
5 5 %br
... ...
app/views/projects/wikis/show.html.haml
1 1 = render 'nav'
2   -%h3.page_title
  2 +%h3.page-title
3 3 = @wiki.title.titleize
4 4 = render 'main_links'
5 5 %br
... ...
app/views/public/projects/index.html.haml
1 1 .row
2 2 .span6
3   - %h3.page_title
  3 + %h3.page-title
4 4 Projects (#{@projects.total_count})
5 5 %small with read-only access
6 6 .span6
... ...
app/views/snippets/_form.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = @snippet.new_record? ? "New Snippet" : "Edit Snippet ##{@snippet.id}"
3 3 %hr
4 4 .snippet-form-holder
... ...
app/views/snippets/current_user_index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 My Snippets
3 3 %small share code pastes with others out of git repository
4 4 .pull-right
... ...
app/views/snippets/index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 Public snippets
3 3 %small share code pastes with others out of git repository
4 4  
... ...
app/views/snippets/show.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 - if @snippet.private?
3 3 %i{:class => "icon-lock cgreen has_bottom_tooltip", "data-original-title" => "Private snippet"}
4 4 - else
... ...
app/views/snippets/user_index.html.haml
1   -%h3.page_title
  1 +%h3.page-title
2 2 = image_tag gravatar_icon(@user.email), class: "avatar s24"
3 3 = @user.name
4 4 %span
... ...
app/views/users/show.html.haml
1 1 .row
2 2 .span8
3   - %h3.page_title
  3 + %h3.page-title
4 4 = image_tag gravatar_icon(@user.email, 90), class: "avatar s90", alt: ''
5 5 = @user.name
6 6 - if @user == current_user
... ...