Commit 6d1b0dd9e3191127de2b897790009d656539bf06

Added meta description

Commit diff

app/helpers/application_helper.rb

 
11# Methods added to this helper will be available to all templates in the application.
22module ApplicationHelper
3 include TagsHelper
43
54 def default_css_tag_sizes
65 %w(tag_size_1 tag_size_2 tag_size_3 tag_size_4)
113113 def title (page_title)
114114 content_for(:title) { page_title }
115115 end
116
117 def meta_description (text)
118 content_for(:meta_description, %Q{<meta name="#{text}" content="" />})
119 end
116120
117121 def div_no_breadcrumb
118122 %Q{<div id='no_breadcrumb'></div>}
toggle raw diff

app/views/layouts/application.html.erb

 
44<html>
55<head>
66<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
7<%= yield(:meta_description) %>
78<link rel="icon" href="/favicon.ico" type="image/ico">
89<link rel="shortcut icon" href="/favicon.ico">
910<link rel='alternate' type='application/rss+xml' title='RSS Feed' href='/rss.xml'/>
2222 <% end -%>
2323
2424 <div id="system_message">
25 <p><strong>Notice:</strong> **BROKEN DURING REFACTOR** This site is unstable work-in-progress, source for it is available on <a href='http://gitorious.org/projects/gitlab/'>gitorious.org</a>. Contact <a href='mailto:mtkd@prj2.com'>mtkd@prj2.com</a></p>
25 <p><strong>Notice:</strong> This site is unstable work-in-progress, source for it is available on <a href='http://gitorious.org/projects/gitlab/'>gitorious.org</a>. Contact <a href='mailto:mtkd@prj2.com'>mtkd@prj2.com</a></p>
2626 </div>
2727
2828 <div id='header'>
toggle raw diff

app/views/site/ac_index.html.erb

 
11<% title 'Home' %>
2<% meta_description 'The full stack to manage collaborative Git projects online, yourself.' %>
23
34<%= div_breadcrumb_open %>
45<%= breadcrumb_title("Home") %>
toggle raw diff

test/fixtures/tickets.yml

 
3939 submitter_id: <%= users(:mtkd) %>
4040 audience: :public
4141
4238:
43 id: 38
44 title: "Do testing specs"
45 <<: *DEFAULTS
46 milestone_id: <%= milestones(:gitlabpublic) %>
47 ttype: :task #:defect, :enhancement, :task
48 status: :proposed #:proposed, :open, :closed, :deleted
49 impact: :low #:low, :high, :security
50 priority: :high #:none, :low, :high, :critical
4251
435237:
4453 id: 37
toggle raw diff