-
+
{{ end }}`,
diff --git a/web/handler/html.go b/web/handler/html.go
index d0fcd14..7baa4fa 100644
--- a/web/handler/html.go
+++ b/web/handler/html.go
@@ -23,7 +23,7 @@ var TplMap = map[string]string{
@@ -63,19 +63,29 @@ var TplMap = map[string]string{
+
-
- Current Status Widget
+
+
Status widget
Past this code into your HTML file:
-
+
Past this code into your CSS file:
-
Make it your own! The CSS above is only an example. Tweak it so that it integrates well with your sites's colors.
-
-
+
Preview
{{ if .name }}
{{ else }}
Add your name and click "generate HTML" to see a preview.
{{ end }}
-
+
-{{ end }}`,
+{{ end }}
+`,
"edit_status": `{{ define "content" }}
-
- Edit status
- {{ if .form.Error }}
- {{ .form.Error }}
- {{ end }}
- {{ template "flash" .flash }}
-
-
+
Edit status
+{{ if .form.Error }}
+
{{ .form.Error }}
+{{ end }}
+{{ template "flash" .flash }}
+
{{ end }}`,
"index": `{{ define "content" }}
+ {{ if .logged }}
Set your status
{{ if .form.Error }}
{{ .form.Error }}
@@ -140,6 +149,11 @@ var TplMap = map[string]string{
status updater bookmarklet
status widget for your homepage
+ {{ else }}
+ Welcome!
+ status.cafe is a place to share your current status.
+ Register now!
+ {{ end }}
Status stream
@@ -205,32 +219,30 @@ var TplMap = map[string]string{
{{ end }}`,
"manage": `{{ define "content" }}
-
- Manage statuses
- {{ template "flash" .flash }}
- {{ range .statuses }}
-
- {{ template "status" . }}
- {{ if eq $.logged .User }}
-
- {{ end }}
-
+Manage statuses
+{{ template "flash" .flash }}
+{{ range .statuses }}
+
+ {{ template "status" . }}
+ {{ if eq $.logged .User }}
+
{{ end }}
- {{ if or .showMore (ne 0 .page) }}
-
- {{ if ne 0 .page }}
- {{ if eq 0 .prev_page }}
- Newer statuses
- {{ else }}
- Newer statuses
- {{ end }}
- {{ end }}
- {{ if .showMore }}
- Older statuses
- {{- end }}
-
+
+{{ end }}
+{{ if or .showMore (ne 0 .page) }}
+
+ {{ if ne 0 .page }}
+ {{ if eq 0 .prev_page }}
+ Newer statuses
+ {{ else }}
+ Newer statuses
{{ end }}
-
+ {{ end }}
+ {{ if .showMore }}
+
Older statuses
+ {{- end }}
+
+{{ end }}
{{ end }}`,
"register": `{{ define "content" }}
@@ -257,35 +269,33 @@ var TplMap = map[string]string{
{{ end }}`,
"settings": `{{ define "content" }}
-
+
+
+
+
+
+
{{ end }}`,
"status-updater": `{{ define "content" }}
@@ -304,7 +314,7 @@ var TplMap = map[string]string{
Drag the following link to your bookmarks toolbar:
- status updater
+ status updater
That's it! From now on, whenever you want to update your status, click the status updater button from your bookmarks and a pop-up window will launch to let you update it.
@@ -320,6 +330,7 @@ var TplMap = map[string]string{
{{ if .picture }}

{{ end }}
+
Subscribe via Atom
- Homepage
-
diff --git a/web/handler/html/common/layout.html b/web/handler/html/common/layout.html
index fb82bfd..25502e7 100644
--- a/web/handler/html/common/layout.html
+++ b/web/handler/html/common/layout.html
@@ -12,7 +12,7 @@