Commit 1df097a693c5b930d6a9909e78014576a3e3d188
- Date: Mon Jan 14 00:01:13 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: 1df097a693c5b930d6a9909e78014576a3e3d188
- Tree SHA1: 55ec59d0b61587d119da4e464c03b3966559fcd8
sprinkled some @page_titles
Commit diff
| |   |
| 1 | <% @page_title = "#{current_path.join("/")} - #{@repository.name} in #{@project.title}" -%> |
| 1 | 2 | <h1> |
| 2 | 3 | Blob of <code><%= current_path.join("/") -%></code> |
| 3 | 4 | <small>(<%= link_to "raw blob data", raw_blob_path(@blob.sha, current_path) -%>)</small> |
| toggle raw diff |
--- a/app/views/browse/blob.html.erb
+++ b/app/views/browse/blob.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "#{current_path.join("/")} - #{@repository.name} in #{@project.title}" -%>
<h1>
Blob of <code><%= current_path.join("/") -%></code>
<small>(<%= link_to "raw blob data", raw_blob_path(@blob.sha, current_path) -%>)</small> |
| |   |
| 1 | <% @page_title = "Commit in #{@repository.name} in #{@project.title}" -%> |
| 2 | |
| 1 | 3 | <h1>Commit <%=h @commit.sha -%></h1> |
| 2 | 4 | |
| 3 | 5 | <p><pre><%=h @commit.message -%></pre></p> |
| toggle raw diff |
--- a/app/views/browse/commit.html.erb
+++ b/app/views/browse/commit.html.erb
@@ -1,3 +1,5 @@
+<% @page_title = "Commit in #{@repository.name} in #{@project.title}" -%>
+
<h1>Commit <%=h @commit.sha -%></h1>
<p><pre><%=h @commit.message -%></pre></p> |
| |   |
| 1 | <% @page_title = "Browsing #{@repository.name} in #{@project.title}" -%> |
| 1 | 2 | <h1>Diff</h1> |
| 2 | 3 | |
| 3 | 4 | <!-- TODO: download as .patch --> |
| toggle raw diff |
--- a/app/views/browse/diff.html.erb
+++ b/app/views/browse/diff.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Browsing #{@repository.name} in #{@project.title}" -%>
<h1>Diff</h1>
<!-- TODO: download as .patch --> |
| |   |
| 1 | <% @page_title = "Browsing #{@repository.name} in #{@project.title}" -%> |
| 1 | 2 | <h1> |
| 2 | 3 | Browsing <%= link_to h(@repository.name), project_repository_path(@project, @repository) -%> |
| 3 | 4 | repository in <%= link_to h(@project.title), project_path(@project) -%> |
| toggle raw diff |
--- a/app/views/browse/index.html.erb
+++ b/app/views/browse/index.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Browsing #{@repository.name} in #{@project.title}" -%>
<h1>
Browsing <%= link_to h(@repository.name), project_repository_path(@project, @repository) -%>
repository in <%= link_to h(@project.title), project_path(@project) -%> |
| |   |
| 1 | <% @page_title = "Commit log for #{@repository.name} in #{@project.title}" -%> |
| 1 | 2 | <h1> |
| 2 | 3 | Browsing <%= link_to h(@repository.name), project_repository_path(@project, @repository) -%> |
| 3 | 4 | repository in <%= link_to h(@project.title), project_path(@project) -%> |
| toggle raw diff |
--- a/app/views/browse/log.html.erb
+++ b/app/views/browse/log.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Commit log for #{@repository.name} in #{@project.title}" -%>
<h1>
Browsing <%= link_to h(@repository.name), project_repository_path(@project, @repository) -%>
repository in <%= link_to h(@project.title), project_path(@project) -%> |
| |   |
| 1 | <% @page_title = "Tree for #{@repository.name} in #{@project.title}" -%> |
| 1 | 2 | <h1> |
| 2 | 3 | Browsing tree of <%= link_to h(@repository.name), project_repository_path(@project, @repository) -%> |
| 3 | 4 | repository in <%= link_to h(@project.title), project_path(@project) -%> |
| toggle raw diff |
--- a/app/views/browse/tree.html.erb
+++ b/app/views/browse/tree.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Tree for #{@repository.name} in #{@project.title}" -%>
<h1>
Browsing tree of <%= link_to h(@repository.name), project_repository_path(@project, @repository) -%>
repository in <%= link_to h(@project.title), project_path(@project) -%> |
| |   |
| 1 | <% @page_title = "Comments in #{@repository.name}" -%> |
| 1 | 2 | <h1>Comments on commit <%= link_to h(@commit.sha), |
| 2 | 3 | project_repository_commit_path(@project, @repository, @commit.sha) -%></h1> |
| 3 | 4 | |
| toggle raw diff |
--- a/app/views/comments/commit.html.erb
+++ b/app/views/comments/commit.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Comments in #{@repository.name}" -%>
<h1>Comments on commit <%= link_to h(@commit.sha),
project_repository_commit_path(@project, @repository, @commit.sha) -%></h1>
|
| |   |
| 1 | <% @page_title = "Comments on #{@project.title}" -%> |
| 1 | 2 | <h1> |
| 2 | 3 | Comments for "<%= h(@repository.name) -%>" repository in |
| 3 | 4 | <%= link_to h(@repository.project.title), @repository.project -%> |
| toggle raw diff |
--- a/app/views/comments/index.html.erb
+++ b/app/views/comments/index.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Comments on #{@project.title}" -%>
<h1>
Comments for "<%= h(@repository.name) -%>" repository in
<%= link_to h(@repository.project.title), @repository.project -%> |
| |   |
| 1 | <% @page_title = @project.title -%> |
| 1 | 2 | <h1><%=h @project.title -%></h1> |
| 2 | 3 | <p><%= simple_format h(@project.description) -%></p> |
| 3 | 4 | |
| toggle raw diff |
--- a/app/views/projects/show.html.erb
+++ b/app/views/projects/show.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = @project.title -%>
<h1><%=h @project.title -%></h1>
<p><%= simple_format h(@project.description) -%></p>
|
| |   |
| 1 | <% @page_title = "#{@repository.name} in #{@project.title}" -%> |
| 1 | 2 | <h1> |
| 2 | 3 | "<%= h(@repository.name) -%>" repository in |
| 3 | 4 | <%= link_to h(@repository.project.title), @repository.project -%> |
| toggle raw diff |
--- a/app/views/repositories/show.html.erb
+++ b/app/views/repositories/show.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "#{@repository.name} in #{@project.title}" -%>
<h1>
"<%= h(@repository.name) -%>" repository in
<%= link_to h(@repository.project.title), @repository.project -%> |
| |   |
| 1 | <% @page_title = "About" -%> |
| 1 | 2 | <div class="section"> |
| 2 | 3 | <a name="about"></a><h1>About Gitorious</h1> |
| 3 | 4 | |
| toggle raw diff |
--- a/app/views/site/about.html.erb
+++ b/app/views/site/about.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "About" -%>
<div class="section">
<a name="about"></a><h1>About Gitorious</h1>
|
| |   |
| 1 | <% @page_title = "Free open source project hosting" -%> |
| 1 | 2 | <div id="site_intro"> |
| 2 | 3 | <p><strong>Gitorious</strong> aims to provide a great |
| 3 | 4 | way of doing distributed opensource code collaboration |
| toggle raw diff |
--- a/app/views/site/index.html.erb
+++ b/app/views/site/index.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = "Free open source project hosting" -%>
<div id="site_intro">
<p><strong>Gitorious</strong> aims to provide a great
way of doing distributed opensource code collaboration |
| |   |
| 1 | <% @page_title = @user.login -%> |
| 1 | 2 | <h1><%=h @user.login -%></h1> |
| 2 | 3 | |
| 3 | 4 | <ul class="infobox"> |
| toggle raw diff |
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -1,3 +1,4 @@
+<% @page_title = @user.login -%>
<h1><%=h @user.login -%></h1>
<ul class="infobox"> |