summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/site.clj2
-rw-r--r--template/popular.st2
-rw-r--r--template/profilelog.st2
-rw-r--r--template/single_message.st2
-rw-r--r--template/tagged_dumps.st2
-rw-r--r--template/userlog.st2
6 files changed, 7 insertions, 5 deletions
diff --git a/src/site.clj b/src/site.clj
index 5294f40..d537081 100644
--- a/src/site.clj
+++ b/src/site.clj
@@ -548,6 +548,7 @@ FROM users u
(.setAttribute st "next" (inc offset)))
(if (not= offset 0)
(.setAttribute st "prev" (max (dec offset) 0)))
+ (.setAttribute st "page_current" (inc offset))
(.setAttribute st "debug_log_items" (logger))
(.toString st))
(resp-error "NO_USER")))
@@ -894,6 +895,7 @@ order by count desc limit ? offset ?")
(.setAttribute st "next" (inc offset)))
(if (not= offset 0)
(.setAttribute st "prev" (max (dec offset) 0)))
+ (.setAttribute st "page_current" (inc offset))
(.setAttribute st "dumps" dumps)
(.setAttribute st "infobar" info-bar)
(.setAttribute st "page_title" page-title)
diff --git a/template/popular.st b/template/popular.st
index b48a999..a30feed 100644
--- a/template/popular.st
+++ b/template/popular.st
@@ -1,6 +1,6 @@
<html>
<head>
- <title>dump.fm - $nick$'s popular</title>
+ <title>$nick$'s most loved posts - dump.fm</title>
$head()$
diff --git a/template/profilelog.st b/template/profilelog.st
index 24e9e07..74f6a90 100644
--- a/template/profilelog.st
+++ b/template/profilelog.st
@@ -1,6 +1,6 @@
<html>
<head>
- <title>$nick$'s dump.fm</title>
+ <title>$nick$'s dump.fm (page $page_current$)</title>
$head()$
<script src="/static/js/jquery.editinplace.1.0.1.packed.js" type="text/javascript"></script>
<script src="/static/js/ajaxupload.js"></script>
diff --git a/template/single_message.st b/template/single_message.st
index e017b6f..1cfd9fd 100644
--- a/template/single_message.st
+++ b/template/single_message.st
@@ -1,7 +1,7 @@
<html>
<head>
- <title>dump.fm</title>
+ <title>a post by $dump.nick$ - dump.fm</title>
$head()$
<script>
jQuery(document).ready(initLog);
diff --git a/template/tagged_dumps.st b/template/tagged_dumps.st
index fb86536..eedd93a 100644
--- a/template/tagged_dumps.st
+++ b/template/tagged_dumps.st
@@ -1,6 +1,6 @@
<html>
<head>
- <title>dump.fm - $page_title$</title>
+ <title>$page_title$ (page $page_current$) - dump.fm</title>
$head()$
<link rel="stylesheet" media="screen" type="text/css" href="http://dump.fm/static/css/dump.css">
<script>
diff --git a/template/userlog.st b/template/userlog.st
index 5c925fd..ad3cc54 100644
--- a/template/userlog.st
+++ b/template/userlog.st
@@ -1,6 +1,6 @@
<html>
<head>
- <title>$nick$'s dump.fm</title>
+ <title>$nick$'s dump.fm (page $page_current$)</title>
$head()$
<script>