Polish up page titles.

This commit is contained in:
Tom Preston-Werner
2010-08-05 18:00:55 -06:00
parent af4c2f8002
commit 10d2f53d40
10 changed files with 10 additions and 22 deletions
@@ -3,7 +3,7 @@
<div class="actions"> <div class="actions">
<a href="/{{name}}">&laquo; Back</a> <a href="/{{name}}">&laquo; Back</a>
</div> </div>
<h1>Comparison of {{human_name}}: {{before}} &rarr; {{after}}</h1> <h1>{{title}}: {{before}} &rarr; {{after}}</h1>
<div id="files"> <div id="files">
<div class="file"> <div class="file">
<div class="meta"> <div class="meta">
@@ -1,6 +1,6 @@
<div class="write"> <div class="write">
<a href="/">&laquo; Home</a> <a href="/">&laquo; Home</a>
<h1>Create a new page</h1> <h1>{{title}}</h1>
<form class="new_wiki" method="post" action="/create/{{name}}"> <form class="new_wiki" method="post" action="/create/{{name}}">
<div> <div>
+1 -1
View File
@@ -1,6 +1,6 @@
<div class="write"> <div class="write">
<a href="/{{name}}">&laquo; Back</a> <a href="/{{name}}">&laquo; Back</a>
<h1>Editing &ldquo;{{name}}&rdquo;</h1> <h1>{{title}}</h1>
<form class="edit_wiki" method="post" action="/edit/{{name}}"> <form class="edit_wiki" method="post" action="/edit/{{name}}">
<div> <div>
@@ -3,7 +3,7 @@
<div class="actions"> <div class="actions">
<a href="/{{name}}">&laquo; Back</a> <a href="/{{name}}">&laquo; Back</a>
</div> </div>
<h1>History of {{human_name}}</h1> <h1>{{title}}</h1>
<form id="history" method="post" action="/compare/{{name}}"> <form id="history" method="post" action="/compare/{{name}}">
<table class="commits" cellpadding="0" cellspacing="0"> <table class="commits" cellpadding="0" cellspacing="0">
<tr> <tr>
@@ -3,7 +3,7 @@
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Gollum - {{title}}</title> <title>{{title}}</title>
<link rel="stylesheet" href="/css/screen.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="/css/screen.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="/css/gollum.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="/css/gollum.css" type="text/css" charset="utf-8" />
<link rel="stylesheet" href="/css/syntax.css" type="text/css" charset="utf-8" /> <link rel="stylesheet" href="/css/syntax.css" type="text/css" charset="utf-8" />
+1 -1
View File
@@ -3,7 +3,7 @@
<div class="actions"> <div class="actions">
<a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a> <a href="/">Home</a> | <a href="/edit/{{name}}">Edit</a>
</div> </div>
<h1>{{human_name}}</h1> <h1>{{title}}</h1>
<div class="content wikistyle gollum {{format}}"> <div class="content wikistyle gollum {{format}}">
{{{content}}} {{{content}}}
</div> </div>
+1 -5
View File
@@ -3,12 +3,8 @@ module Precious
class Compare < Layout class Compare < Layout
attr_reader :page, :diff, :versions attr_reader :page, :diff, :versions
def human_name
@page.title
end
def title def title
"A Page" "Comparison of #{@page.title}"
end end
def path def path
+1 -1
View File
@@ -6,7 +6,7 @@ module Precious
attr_reader :page, :content attr_reader :page, :content
def title def title
"Edit" "Editing #{@page.title}"
end end
end end
end end
+1 -5
View File
@@ -3,12 +3,8 @@ module Precious
class History < Layout class History < Layout
attr_reader :page attr_reader :page
def human_name
@page.title
end
def title def title
"A Page" "History of #{@page.title}"
end end
def versions def versions
+1 -5
View File
@@ -3,12 +3,8 @@ module Precious
class Page < Layout class Page < Layout
attr_reader :content, :page, :footer attr_reader :content, :page, :footer
def human_name
@page.title
end
def title def title
"A Page" @page.title
end end
def format def format