From f20565d54bed0895ca87a5548d1e6d1948d5f5f1 Mon Sep 17 00:00:00 2001 From: life Date: Tue, 28 Oct 2014 14:48:22 +0800 Subject: [PATCH] just for rename --- app/views/admin/blog/list.html | 130 +++ app/views/admin/blog/page.html | 33 + app/views/admin/button.html | 639 +++++++++++++ app/views/admin/data/configuration.html | 55 ++ app/views/admin/data/index.html | 115 +++ app/views/admin/email/emailDialog.html | 76 ++ app/views/admin/email/list.html | 191 ++++ app/views/admin/email/page.html | 33 + app/views/admin/email/send.html | 85 ++ app/views/admin/email/sendToUsers.html | 105 +++ app/views/admin/email/set.html | 62 ++ app/views/admin/email/template.html | 325 +++++++ app/views/admin/end.html | 3 + app/views/admin/footer.html | 30 + app/views/admin/header.html | 37 + app/views/admin/index.html | 89 ++ app/views/admin/nav.html | 196 ++++ app/views/admin/setting/demo.html | 52 + app/views/admin/setting/openRegister.html | 48 + app/views/admin/setting/shareNote.html | 173 ++++ app/views/admin/top.html | 123 +++ app/views/admin/user/add.html | 58 ++ app/views/admin/user/list.html | 157 ++++ app/views/admin/user/page.html | 33 + app/views/app/Index.html | 23 + app/views/blog/about_me.html | 19 + app/views/blog/comment.html | 204 ++++ app/views/blog/footer.html | 56 ++ app/views/blog/header.html | 104 ++ app/views/blog/highlight.html | 73 ++ app/views/blog/index.html | 50 + app/views/blog/search.html | 45 + app/views/blog/set.html | 323 +++++++ app/views/blog/view.html | 125 +++ app/views/errors/404-dev.html | 72 ++ app/views/errors/404.html | 35 + app/views/errors/500-dev.html | 118 +++ app/views/errors/500.html | 35 + app/views/file/blog_logo.html | 14 + app/views/file/image.html | 14 + app/views/home/find_password.html | 87 ++ app/views/home/find_password2.html | 100 ++ app/views/home/find_password2_timeout.html | 31 + app/views/home/footer.html | 24 + app/views/home/header.html | 111 +++ app/views/home/header_box.html | 21 + app/views/home/index.html | 135 +++ app/views/home/index_en.html | 140 +++ app/views/home/index_zh.html | 139 +++ app/views/home/login.html | 146 +++ app/views/home/modal.html | 22 + app/views/home/register.html | 118 +++ app/views/html2Image/index.html | 102 ++ app/views/html2Image/test.html | 4 + app/views/note/histories.html | 29 + app/views/note/note-dev.html | 889 ++++++++++++++++++ app/views/note/note.html | 889 ++++++++++++++++++ app/views/notebook/Index.html | 23 + app/views/oauth/oauth_callback_error.html | 32 + .../share/note_notebook_share_user_infos.html | 71 ++ app/views/share/note_share_user_infos.html | 84 ++ app/views/user/account.html | 272 ++++++ app/views/user/active_email.html | 32 + app/views/user/update_email.html | 35 + 64 files changed, 7694 insertions(+) create mode 100644 app/views/admin/blog/list.html create mode 100644 app/views/admin/blog/page.html create mode 100644 app/views/admin/button.html create mode 100644 app/views/admin/data/configuration.html create mode 100644 app/views/admin/data/index.html create mode 100644 app/views/admin/email/emailDialog.html create mode 100644 app/views/admin/email/list.html create mode 100644 app/views/admin/email/page.html create mode 100644 app/views/admin/email/send.html create mode 100644 app/views/admin/email/sendToUsers.html create mode 100644 app/views/admin/email/set.html create mode 100644 app/views/admin/email/template.html create mode 100644 app/views/admin/end.html create mode 100644 app/views/admin/footer.html create mode 100644 app/views/admin/header.html create mode 100644 app/views/admin/index.html create mode 100644 app/views/admin/nav.html create mode 100644 app/views/admin/setting/demo.html create mode 100644 app/views/admin/setting/openRegister.html create mode 100644 app/views/admin/setting/shareNote.html create mode 100644 app/views/admin/top.html create mode 100644 app/views/admin/user/add.html create mode 100644 app/views/admin/user/list.html create mode 100644 app/views/admin/user/page.html create mode 100644 app/views/app/Index.html create mode 100644 app/views/blog/about_me.html create mode 100644 app/views/blog/comment.html create mode 100644 app/views/blog/footer.html create mode 100644 app/views/blog/header.html create mode 100644 app/views/blog/highlight.html create mode 100644 app/views/blog/index.html create mode 100644 app/views/blog/search.html create mode 100644 app/views/blog/set.html create mode 100644 app/views/blog/view.html create mode 100644 app/views/errors/404-dev.html create mode 100644 app/views/errors/404.html create mode 100644 app/views/errors/500-dev.html create mode 100644 app/views/errors/500.html create mode 100644 app/views/file/blog_logo.html create mode 100644 app/views/file/image.html create mode 100644 app/views/home/find_password.html create mode 100644 app/views/home/find_password2.html create mode 100644 app/views/home/find_password2_timeout.html create mode 100644 app/views/home/footer.html create mode 100644 app/views/home/header.html create mode 100644 app/views/home/header_box.html create mode 100644 app/views/home/index.html create mode 100644 app/views/home/index_en.html create mode 100644 app/views/home/index_zh.html create mode 100644 app/views/home/login.html create mode 100644 app/views/home/modal.html create mode 100644 app/views/home/register.html create mode 100644 app/views/html2Image/index.html create mode 100644 app/views/html2Image/test.html create mode 100644 app/views/note/histories.html create mode 100644 app/views/note/note-dev.html create mode 100644 app/views/note/note.html create mode 100644 app/views/notebook/Index.html create mode 100644 app/views/oauth/oauth_callback_error.html create mode 100644 app/views/share/note_notebook_share_user_infos.html create mode 100644 app/views/share/note_share_user_infos.html create mode 100644 app/views/user/account.html create mode 100644 app/views/user/active_email.html create mode 100644 app/views/user/update_email.html diff --git a/app/views/admin/blog/list.html b/app/views/admin/blog/list.html new file mode 100644 index 0000000..6f8969b --- /dev/null +++ b/app/views/admin/blog/list.html @@ -0,0 +1,130 @@ +{{template "admin/top.html" .}} +

Blog

+ +
+
+
+ + +
+
+ +
+
+
+ + + + +
+
+
+
+ + + + + {{$url := urlConcat "/adminBlog/index" "keywords" .keywords}} + + + + + + + + {{range .blogs}} + + + + + + + {{end}} + +
+ + + Title + + + + + + + Username + + + + + + + Create Date + + + + + +
+ + + {{.Title|raw}} + + + {{.User.Username}} + + + {{.CreatedTime|datetime}} +
+
+
+
+ +
+ + showing 20-30 of 50 items + +
+
+ {{set . "url" (urlConcat "/adminBlog/index" "sorter" .sorter "keywords" .keywords)}} + {{template "admin/user/page.html" .}} +
+
+
+
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/blog/page.html b/app/views/admin/blog/page.html new file mode 100644 index 0000000..68b46b8 --- /dev/null +++ b/app/views/admin/blog/page.html @@ -0,0 +1,33 @@ +{{if gt .pageInfo.TotalPage 1}} + +{{end}} \ No newline at end of file diff --git a/app/views/admin/button.html b/app/views/admin/button.html new file mode 100644 index 0000000..50c1a6b --- /dev/null +++ b/app/views/admin/button.html @@ -0,0 +1,639 @@ +
+ +
+

+ Button options +

+ +

+ Button size +

+

+ + Large button + +

+

+ + Default button + +

+

+ + Small button + +

+

+ + Extra small button + +

+

+ Button dropdowns +

+

+ Single button dropdowns +

+ +
+ +
+
+ +
+

+ Split button dropdowns & variation +

+
+
+ + + +
+
+ + + +
+
+

+ Button with icon +

+

+ + + + Html5 + + + + + CSS3 + +

+

+ + + + Block button with icon + +

+

+ + + + Block button with icon + +

+

+ Button icon +

+

+ + + + + + + + + + + + +

+

+ Button icon rounded +

+

+ + + + + + + + + + + + +

+
+
+

+ Rounded button +

+ +

+ Button groups +

+
+
+ + + +
+
+

+ Vertical button groups +

+
+ + + +
+

+ Nested button groups +

+
+ + + +
+ + +
+
+

+ Justified button groups +

+ +

+ Multiple button groups +

+
+
+ + + + +
+
+ + + +
+
+ +
+
+

+ Button components +

+

+ + There are a few easy ways to quickly get started with Bootstrap, each + one ... + + + appealing to a different skill level and use case. Read through to see + what suits your particular needs. + +

+

+ +

+

+ + + + + + +

+
+
+ + + +
+
+
+
+ + +
+
+
+ Select Button +
+
+ + +
+

+ + Toggle + + Social buttons +

+

+ + + + Twitter + + + + + Facebook + + + + + Google+ + +

+
+ +
\ No newline at end of file diff --git a/app/views/admin/data/configuration.html b/app/views/admin/data/configuration.html new file mode 100644 index 0000000..32ef469 --- /dev/null +++ b/app/views/admin/data/configuration.html @@ -0,0 +1,55 @@ +{{template "admin/top.html" .}} +

Mongodb Tool Configuration

+ +
+ +
+
+
+
+
+ + + Please input the bin mongodump's absolute path +
+
+ + + Please input the bin mongorestore's absolute path +
+
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/data/index.html b/app/views/admin/data/index.html new file mode 100644 index 0000000..ec3fb37 --- /dev/null +++ b/app/views/admin/data/index.html @@ -0,0 +1,115 @@ +{{template "admin/top.html" .}} +

Backup & Restore

+ + +
+ +
+
+ +
+ +
+ +
+ + + + + + + + + + + {{range $each := .backups}} + + + + + + + {{end}} + +
+ Date + + Remark + + Path + +
+ {{$each.createdTime|unixDatetime}} + + + + {{$each.path}} + + + + +
+
+
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} diff --git a/app/views/admin/email/emailDialog.html b/app/views/admin/email/emailDialog.html new file mode 100644 index 0000000..e50bb75 --- /dev/null +++ b/app/views/admin/email/emailDialog.html @@ -0,0 +1,76 @@ +
+ +
+
+
+
Email
+
+
+ + + input email line by line +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+
+
+ +
+ + \ No newline at end of file diff --git a/app/views/admin/email/list.html b/app/views/admin/email/list.html new file mode 100644 index 0000000..2a853ad --- /dev/null +++ b/app/views/admin/email/list.html @@ -0,0 +1,191 @@ +{{template "admin/top.html" .}} +

Email Logs

+ +
+
+
+ + +
+
+ +
+
+
+ + + + +
+
+
+
+ + + + + {{$url := urlConcat "/adminEmail/list" "keywords" .keywords}} + + + + + + + + + + {{range .emails}} + + + + + + + + + + {{end}} + +
+ + + Email + + + + + + + Subject + + + + + + + Ok + + + + + + + Msg + + + + + + + Date + + + + + + +
+ + + {{.Email}} + + {{.Subject}} + + {{.Ok}} + + {{.Msg}} + + {{.CreatedTime|datetime}} + + Send + Delete +
+
+
+
+ +
+ {{set . "url" (urlConcat "/adminEmail/list" "sorter" .sorter "keywords" .keywords)}} + {{template "admin/user/page.html" .}} +
+
+
+
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} diff --git a/app/views/admin/email/page.html b/app/views/admin/email/page.html new file mode 100644 index 0000000..68b46b8 --- /dev/null +++ b/app/views/admin/email/page.html @@ -0,0 +1,33 @@ +{{if gt .pageInfo.TotalPage 1}} + +{{end}} \ No newline at end of file diff --git a/app/views/admin/email/send.html b/app/views/admin/email/send.html new file mode 100644 index 0000000..a30dce2 --- /dev/null +++ b/app/views/admin/email/send.html @@ -0,0 +1,85 @@ +{{template "admin/top.html" .}} +

Send Email

+ +
+ +
+
+
+
Email
+
+
+ + + input email line by line +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/email/sendToUsers.html b/app/views/admin/email/sendToUsers.html new file mode 100644 index 0000000..fadd42b --- /dev/null +++ b/app/views/admin/email/sendToUsers.html @@ -0,0 +1,105 @@ +{{template "admin/top.html" .}} +

Send Email to Users

+ +
+ +
+
+
+
User filter
+
+
+ + +
+ +
+ +
+ +
+ + + input email line by line +
+ +
+ + + input email line by line +
+
+
+ +
+
Email
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/email/set.html b/app/views/admin/email/set.html new file mode 100644 index 0000000..011c963 --- /dev/null +++ b/app/views/admin/email/set.html @@ -0,0 +1,62 @@ +{{template "admin/top.html" .}} +

Email Configuration

+ +
+ +
+
+
+
+
+ + +
+
+ + +
+
+ + +
+ +
+ + +
+
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/email/template.html b/app/views/admin/email/template.html new file mode 100644 index 0000000..5d85473 --- /dev/null +++ b/app/views/admin/email/template.html @@ -0,0 +1,325 @@ +{{template "admin/top.html" .}} +

Email Template

+ + + +
+
+
+ +
+
+
+
+
+
+
+
+ Layout +
+ Available tokens: + $.subject + $.siteUrl +
+
+ + +
+ +
+ + +
+
+
+
+
+
+
+
+
+
+
+ Register Welcome And Email Validation: +
+ Available tokens: + header + footer + $.siteUrl + $.tokenUrl + $.token + $.tokenTimeout + $.user.userId + $.user.email + $.user.username +
+
+ + +
+ +
+ + +
+
+ Preview +
+
+
+
+
+
+
+
+
+
+
+
+
+ Update Email and Send Active Email +
+ Available tokens: + header + footer + $.siteUrl + $.tokenUrl + $.token + $.tokenTimeout + $.user.userId + $.user.email + $.user.username +
+ +
+ + +
+ +
+ + +
+ +
+ Preview +
+
+
+
+
+
+
+
+ +
+
+
+
+
+ Find Passord +
+ Available tokens: + header + footer + $.siteUrl + $.tokenUrl + $.token + $.tokenTimeout +
+ +
+ + +
+ +
+ + +
+ +
+ Preview +
+
+
+
+
+
+
+
+ +
+
+
+
+
+ Invite Register +
+ Available tokens: + header + footer + $.siteUrl + $.registerUrl + $.user.username + $.user.email + $.content +
+ +
+ + +
+ +
+ + +
+ +
+ Preview +
+
+
+
+
+
+
+
+ +
+
+
+
+
+ Blog Comment +
+ Available tokens: + header + footer + $.siteUrl + $.blogUrl + +
+ $.commentContent + +
+ $.blog.id + $.blog.title + $.blog.url + +
+ $.commentUser.userId + $.commentUser.username + $.commentUser.email + $.commentUser.isBlogAuthor + +
+ $.commentedUser.userId + $.commentedUser.username + $.commentedUser.email + $.commentedUser.isBlogAuthor +
+ +
+ + +
+ +
+ + +
+ +
+ Preview +
+
+
+
+
+
+
+
+ +
+
+
+ +
+ +
+ +
+ + +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/end.html b/app/views/admin/end.html new file mode 100644 index 0000000..a57a3db --- /dev/null +++ b/app/views/admin/end.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/app/views/admin/footer.html b/app/views/admin/footer.html new file mode 100644 index 0000000..6522874 --- /dev/null +++ b/app/views/admin/footer.html @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/views/admin/header.html b/app/views/admin/header.html new file mode 100644 index 0000000..b2623ee --- /dev/null +++ b/app/views/admin/header.html @@ -0,0 +1,37 @@ + + + + + + + + + +{{.title}} + + + + + + + + + + + \ No newline at end of file diff --git a/app/views/admin/index.html b/app/views/admin/index.html new file mode 100644 index 0000000..0b718de --- /dev/null +++ b/app/views/admin/index.html @@ -0,0 +1,89 @@ +{{template "admin/top.html" .}} +

Dashboard

+
+ +
+ + +
+

+ Leanote Events +

+ +
+ + + +{{template "admin/footer.html" .}} + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/nav.html b/app/views/admin/nav.html new file mode 100644 index 0000000..dbc2be6 --- /dev/null +++ b/app/views/admin/nav.html @@ -0,0 +1,196 @@ + \ No newline at end of file diff --git a/app/views/admin/setting/demo.html b/app/views/admin/setting/demo.html new file mode 100644 index 0000000..e4ec913 --- /dev/null +++ b/app/views/admin/setting/demo.html @@ -0,0 +1,52 @@ +{{template "admin/top.html" .}} +

Demo User

+ +
+ +
+
+
+
+
+ + +
+
+ + +
+
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/setting/openRegister.html b/app/views/admin/setting/openRegister.html new file mode 100644 index 0000000..b5345ed --- /dev/null +++ b/app/views/admin/setting/openRegister.html @@ -0,0 +1,48 @@ +{{template "admin/top.html" .}} +

Open Register

+ +
+ +
+
+
+
+
+ + +
+
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/setting/shareNote.html b/app/views/admin/setting/shareNote.html new file mode 100644 index 0000000..f90adf7 --- /dev/null +++ b/app/views/admin/setting/shareNote.html @@ -0,0 +1,173 @@ +{{template "admin/top.html" .}} +

Register Share Note

+ +
+ +
+
+
+
+
+ + +
+
+ +
+ {{range $notebook := .arrMap.registerSharedNotebooks}} +
+
+ +
+
+ +
+
+ {{end}} + + +
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+ The notebooks will shared to register user +
+ +
+ +
+ {{range $note := .arrMap.registerSharedNotes}} +
+
+ +
+
+ +
+
+ {{end}} + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+
+ The notes will shared to register user +
+ +
+ +
+ {{range $noteId := .arr.registerCopyNoteIds}} +
+
+ +
+
+ {{end}} + +
+
+ +
+
+ +
+
+ +
+
+
+ The notes will copy to register user +
+
+ +
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} \ No newline at end of file diff --git a/app/views/admin/top.html b/app/views/admin/top.html new file mode 100644 index 0000000..aaff7da --- /dev/null +++ b/app/views/admin/top.html @@ -0,0 +1,123 @@ + + + + + + leanote admin + + + + + + + + + +
+ +
+
+ + + +
+
+
+ + + \ No newline at end of file diff --git a/app/views/admin/user/add.html b/app/views/admin/user/add.html new file mode 100644 index 0000000..c7cfac3 --- /dev/null +++ b/app/views/admin/user/add.html @@ -0,0 +1,58 @@ +{{template "admin/top.html" .}} +

Add User

+ +
+ +
+
+
+
+
+ + +
+
+
+ + +
+
+ + +
+
+
+
+ +
+
+
+
+ +
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} diff --git a/app/views/admin/user/list.html b/app/views/admin/user/list.html new file mode 100644 index 0000000..aee5a62 --- /dev/null +++ b/app/views/admin/user/list.html @@ -0,0 +1,157 @@ +{{template "admin/top.html" .}} +

Users

+ +
+
+
+ + +
+
+ +
+
+
+ + + + +
+
+
+
+ + + + + {{$url := urlConcat "/adminUser/index" "keywords" .keywords}} + + + + + + + + + {{range .users}} + + + + + + + + + {{end}} + +
+ + + Email + + + + + + + Username + + + + + + + Verified + + + + + + + Register Date + + + + + + +
+ + + {{.Email}} + + {{.Username}} + + {{.Verified}} + + {{.CreatedTime|datetime}} + + Send Email +
+
+
+
+ + +
+ {{set . "url" (urlConcat "/adminUser/index" "sorter" .sorter "keywords" .keywords)}} + {{template "admin/user/page.html" .}} +
+
+
+
+ +{{template "admin/footer.html" .}} + + + +{{template "admin/end.html" .}} diff --git a/app/views/admin/user/page.html b/app/views/admin/user/page.html new file mode 100644 index 0000000..68b46b8 --- /dev/null +++ b/app/views/admin/user/page.html @@ -0,0 +1,33 @@ +{{if gt .pageInfo.TotalPage 1}} + +{{end}} \ No newline at end of file diff --git a/app/views/app/Index.html b/app/views/app/Index.html new file mode 100644 index 0000000..deb2304 --- /dev/null +++ b/app/views/app/Index.html @@ -0,0 +1,23 @@ +{{set . "title" "Home"}} +{{template "header.html" .}} + +
+
+
+
+

It works!

+

+
+
+
+
+ +
+
+
+ {{template "flash.html" .}} +
+
+
+ +{{template "footer.html" .}} diff --git a/app/views/blog/about_me.html b/app/views/blog/about_me.html new file mode 100644 index 0000000..1c6f303 --- /dev/null +++ b/app/views/blog/about_me.html @@ -0,0 +1,19 @@ +{{template "blog/header.html" .}} + +
+
+
+
+ {{msg . "aboutMe"}} +
+
+
+
+ {{.userBlog.AboutMe | raw}} + +
+
+
+
+ +{{template "blog/footer.html" .}} \ No newline at end of file diff --git a/app/views/blog/comment.html b/app/views/blog/comment.html new file mode 100644 index 0000000..5ec5ebb --- /dev/null +++ b/app/views/blog/comment.html @@ -0,0 +1,204 @@ + +
+
+ + {{if .blog.ReadNum}}{{.blog.ReadNum}}{{else}}1{{end}} {{msg . "viewers"}} +
+
+
+ + + + + + {{if eq .locale "zh"}} + + {{end}} +
+
+
+
+ + +{{if and .userBlog.CanComment (not (eq .userBlog.CommentType "disqus"))}} + + + + +
+ {{if .visitUserInfo.UserId}} +
+
+
+ +
+
+ +
+
+
+ +
+
+ {{else}} +
+ {{msg . "signIn"}}, {{msg . "submitComment"}}. +
+ 没有帐号? {{msg . "signUp"}} +
+ {{end}} +
+ + {{.blog.CommentNum}} {{msg . "comments"}} + +
+
    +
+
+ +
+
+ More... +
+
+ +
+
+ +{{if eq .locale "zh"}} +
+
+
    +
  • +
  • +
  • +
  • +
  • +
+ +

+
+
+{{end}} + +{{end}} + +{{if and .userBlog.CanComment (eq .userBlog.CommentType "disqus")}} + +
+ + + +comments powered by Disqus +{{end}} \ No newline at end of file diff --git a/app/views/blog/footer.html b/app/views/blog/footer.html new file mode 100644 index 0000000..54c2b3f --- /dev/null +++ b/app/views/blog/footer.html @@ -0,0 +1,56 @@ +
+ {{$userId := .userBlog.UserId.Hex}} + +
+ + + + +{{if not .isMe}} + +{{end}} + diff --git a/app/views/blog/header.html b/app/views/blog/header.html new file mode 100644 index 0000000..75a13c1 --- /dev/null +++ b/app/views/blog/header.html @@ -0,0 +1,104 @@ + + + + + + + + + + +{{.title}} + + + +{{if .set}} + +{{else}} + +{{end}} + + + + + + +
+
+ + +
+ + + +
+ + \ No newline at end of file diff --git a/app/views/blog/highlight.html b/app/views/blog/highlight.html new file mode 100644 index 0000000..84de595 --- /dev/null +++ b/app/views/blog/highlight.html @@ -0,0 +1,73 @@ + + + + + + + + \ No newline at end of file diff --git a/app/views/blog/index.html b/app/views/blog/index.html new file mode 100644 index 0000000..9b75dc8 --- /dev/null +++ b/app/views/blog/index.html @@ -0,0 +1,50 @@ +{{template "blog/header.html" .}} + +
+
+ {{if .notebookId}} +

{{msg . "blogClass"}} - {{.notebook.Title}}

+ {{end}} +
+
+ {{$G := .}} + {{range .blogs}} +
+ +
+ + {{if .Tags}} + {{blogTags $ .Tags}} + {{else}} + {{msg $ "noTag"}} + {{end}} + | + {{msg $ "updatedTime"}} {{.UpdatedTime | datetime}} | + {{msg $ "createdTime"}} {{.CreatedTime | datetime}} +
+
+ {{.Content | raw}} +
+ {{msg $ "more"}}. +
+ {{end}} + +
    + {{if .notebookId}} + {{set $ "pageUrl" (concatStr $.cateUrl "/" .notebookId)}} + {{else}} + {{set $ "pageUrl" $.indexUrl}} + {{end}} + {{page $.pageUrl .page .pageSize .count}} +
+
+
+ +{{template "blog/footer.html" .}} +{{template "blog/highlight.html"}} + + \ No newline at end of file diff --git a/app/views/blog/search.html b/app/views/blog/search.html new file mode 100644 index 0000000..e1252b4 --- /dev/null +++ b/app/views/blog/search.html @@ -0,0 +1,45 @@ +{{template "blog/header.html" .}} + +
+
+

{{msg . "search"}} - {{.key}}

+
+ +
+ {{range .blogs}} +
+ +
+ + {{if .Tags}} + {{blogTags $ .Tags}} + {{else}} + {{msg $ "noTag"}} + {{end}} + | + {{msg $ "updatedTime"}} {{.UpdatedTime | datetime}} | + {{msg $ "createdTime"}} {{.CreatedTime | datetime}} +
+
+ {{.Content | raw}} +
+ {{msg $ "more"}} +
+ {{end}} + + {{if not .blogs }} +
+ {{msg . "none"}} +
+ {{end}} +
+
+ +{{template "blog/footer.html" .}} +{{template "blog/highlight.html"}} + + \ No newline at end of file diff --git a/app/views/blog/set.html b/app/views/blog/set.html new file mode 100644 index 0000000..5602321 --- /dev/null +++ b/app/views/blog/set.html @@ -0,0 +1,323 @@ +{{template "blog/header.html" .}} + + + + +
+
+ + + +
+
+
+
+ +
+ +
+
+ +
+ +
+ + + +
+
+
+
+ + +
+
+
+
+
+
+
+ +
+ +
+
+
+ +
+ + +
+ +
+ + + + +
+ +
+ {{msg . "disqusHelp"}} + {{msg . "needHelp"}} +
+
+
+
+
+
+ + +
+
+
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ +
+ +
+ + + +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+
+ +
+ +
+ +
+
+ +
+
+ + +
+
+
+
+
+ +
+ + {{template "blog/footer.html" .}} + + + + + +
+ + \ No newline at end of file diff --git a/app/views/blog/view.html b/app/views/blog/view.html new file mode 100644 index 0000000..44cad8b --- /dev/null +++ b/app/views/blog/view.html @@ -0,0 +1,125 @@ +{{template "blog/header.html" .}} + +
+
+
+
+ {{.blog.Title}} +
+
+ + {{if .blog.Tags}} + {{blogTags $ .blog.Tags}} + {{else}} + {{msg . "noTag"}} + {{end}} + | + {{msg . "updatedTime"}} {{.blog.UpdatedTime | datetime}} | + {{msg . "createdTime"}} {{.blog.CreatedTime | datetime}} +
+ +
+ {{ if .userInfo.Logo}} + + {{else}} + + {{end}} + {{.userInfo.Username}} + + {{if .blog.Tags}} +   + + {{blogTags $ .blog.Tags}} + {{end}} +
+ +
+ {{if .blog.IsMarkdown }} + +
+ +
+ {{else}} + {{.blog.Content | raw}} + {{end}} + +
{{.blog.Desc}}
+
+ + + {{template "blog/comment.html" .}} +
+
+
+{{template "blog/footer.html" .}} +{{template "blog/highlight.html"}} +
+
+ + {{msg . "blogNav"}} +
+
+
+
+ + + + + + + + + +{{if .blog.IsMarkdown }} + + + + + + + + + + + +{{else}} + +{{end}} + + + + \ No newline at end of file diff --git a/app/views/errors/404-dev.html b/app/views/errors/404-dev.html new file mode 100644 index 0000000..035a3c6 --- /dev/null +++ b/app/views/errors/404-dev.html @@ -0,0 +1,72 @@ + + + + 404 + + + + + +
+

These routes have been tried, in this order :

+
    + {{range .Router.Routes}} +
  1. {{pad .Method 10}}{{pad .Path 50}}{{.Action}}
  2. + {{end}} +
+
+ + + \ No newline at end of file diff --git a/app/views/errors/404.html b/app/views/errors/404.html new file mode 100644 index 0000000..5d38aa5 --- /dev/null +++ b/app/views/errors/404.html @@ -0,0 +1,35 @@ +{{if eq .RunMode "dev"}} +{{template "errors/404-dev.html" .}} +{{else}} +{{template "home/header_box.html" .}} + +
+
+
+

404

+
+
+

+ This page cann't found. +

+ + +
+
+
+
+

+ leanote © 2014 +

+
+ + + +{{end}} \ No newline at end of file diff --git a/app/views/errors/500-dev.html b/app/views/errors/500-dev.html new file mode 100644 index 0000000..f519db7 --- /dev/null +++ b/app/views/errors/500-dev.html @@ -0,0 +1,118 @@ + + {{with .Error}} + + {{if .Path}} +
+

In {{.Path}} + {{if .Line}} + (around {{if .Line}}line {{.Line}}{{end}}{{if .Column}} column {{.Column}}{{end}}) + {{end}} +

+ {{range .ContextSource}} +
+ {{.Line}}: +
{{.Source}}
+
+ {{end}} +
+ {{end}} + {{if .MetaError}} +
+

Additionally, an error occurred while handling this error.

+
+ {{.MetaError}} +
+
+ {{end}} + {{end}} diff --git a/app/views/errors/500.html b/app/views/errors/500.html new file mode 100644 index 0000000..683f4c4 --- /dev/null +++ b/app/views/errors/500.html @@ -0,0 +1,35 @@ +{{if eq .RunMode "dev"}} +{{template "errors/500-dev.html" .}} +{{else}} +{{template "home/header_box.html" .}} + +
+
+
+

500

+
+
+

+ Sorry, we got an error. +

+ + +
+
+
+
+

+ leanote © 2014 +

+
+ + + +{{end}} \ No newline at end of file diff --git a/app/views/file/blog_logo.html b/app/views/file/blog_logo.html new file mode 100644 index 0000000..0d9097b --- /dev/null +++ b/app/views/file/blog_logo.html @@ -0,0 +1,14 @@ + + + + +图片上传结果 + + + diff --git a/app/views/file/image.html b/app/views/file/image.html new file mode 100644 index 0000000..783dc54 --- /dev/null +++ b/app/views/file/image.html @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/app/views/home/find_password.html b/app/views/home/find_password.html new file mode 100644 index 0000000..9971d7a --- /dev/null +++ b/app/views/home/find_password.html @@ -0,0 +1,87 @@ +{{template "home/header_box.html" .}} + +
+
+

leanote

+
+
{{msg . "findPassword"}}
+
+
+ +
+ + +
+ + +
+
+ +
+
+ +
+

+ {{msg . "login"}} +   + {{msg . "home"}} +

+

+ leanote © 2014 +

+
+ + + + + + + + \ No newline at end of file diff --git a/app/views/home/find_password2.html b/app/views/home/find_password2.html new file mode 100644 index 0000000..687e6b7 --- /dev/null +++ b/app/views/home/find_password2.html @@ -0,0 +1,100 @@ +{{template "home/header_box.html" .}} + +
+
+

leanote

+
+
{{msg . "updatePassword"}}
+
+
+ +
+ +
+ {{.findPwd.Email}} +
+ +
+ + + {{msg . "passwordTips"}} +
+
+ + +
+ +
+
+
+
+ +
+

+ {{msg . "login"}} +   + {{msg . "home"}} +

+

+ leanote © 2014 +

+
+ + + + + + + \ No newline at end of file diff --git a/app/views/home/find_password2_timeout.html b/app/views/home/find_password2_timeout.html new file mode 100644 index 0000000..bf7800c --- /dev/null +++ b/app/views/home/find_password2_timeout.html @@ -0,0 +1,31 @@ +{{template "home/header_box.html" .}} + +
+
+

leanote

+
+
{{msg . "findPasswordTimeout"}}
+
+
+ {{msg . "findPasswordTimeout"}}, {{msg . "reFindPassword"}} +
+
+
+
+
+ +
+

+ {{msg . "login"}} +   + {{msg . "home"}} +

+

+ leanote © 2014 +

+
+ + + + + \ No newline at end of file diff --git a/app/views/home/footer.html b/app/views/home/footer.html new file mode 100644 index 0000000..7aefd36 --- /dev/null +++ b/app/views/home/footer.html @@ -0,0 +1,24 @@ + diff --git a/app/views/home/header.html b/app/views/home/header.html new file mode 100644 index 0000000..ea2c59f --- /dev/null +++ b/app/views/home/header.html @@ -0,0 +1,111 @@ + + + + + + + + + +{{.title}} + + + + + + + + + + + + \ No newline at end of file diff --git a/app/views/home/header_box.html b/app/views/home/header_box.html new file mode 100644 index 0000000..15aee5c --- /dev/null +++ b/app/views/home/header_box.html @@ -0,0 +1,21 @@ + + + + + + + + + +{{.title}} + + + + + + + \ No newline at end of file diff --git a/app/views/home/index.html b/app/views/home/index.html new file mode 100644 index 0000000..b7fcb4d --- /dev/null +++ b/app/views/home/index.html @@ -0,0 +1,135 @@ +{{template "home/header.html" .}} + +
+
+

leanote, {{msg . "moto"}}

+

{{msg . "moto3"}}

+

{{msg . "moto2"}}

+ +
+ {{msg . "fork github"}} +   +   + {{msg . "try"}} + {{if .openRegister}} +   +   + OR +   +   + {{msg . "register"}} + {{end}} +
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+

{{msg . "aboutLeanote"}}

+
+
+

{{msg . "knowledge"}}

+

{{msg . "knowledgeInfo"}}

+
+
+

{{msg . "share"}}

+

{{msg . "shareInfo"}}

+
+
+

{{msg . "cooperation"}}

+

{{msg . "cooperationInfo"}}

+
+
+

{{msg . "blog"}}

+

{{msg . "blogInfo"}}

+
+
+
+ +
+

{{msg . "download"}}

+ +
+ + + +{{template "home/footer.html"}} + + + + + + + \ No newline at end of file diff --git a/app/views/home/index_en.html b/app/views/home/index_en.html new file mode 100644 index 0000000..ac17e51 --- /dev/null +++ b/app/views/home/index_en.html @@ -0,0 +1,140 @@ +{{template "home/header.html" .}} + +
+
+

leanote, {{msg . "moto"}}

+

{{msg . "moto3"}}

+

+ Knowledge, Blog, Sharing, Cooperation... all in leanote +

+ +
+ {{msg . "fork github"}} +   +   + {{msg . "try"}} + {{if .openRegister}} +   +   + OR +   +   + {{msg . "register"}} + {{end}} +
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+

{{msg . "aboutLeanote"}}

+
+
+

{{msg . "knowledge"}}

+

{{msg . "knowledgeInfo"}}

+
+
+

{{msg . "share"}}

+

{{msg . "shareInfo"}}

+
+
+

{{msg . "cooperation"}}

+

{{msg . "cooperationInfo"}}

+
+
+

{{msg . "blog"}}

+

{{msg . "blogInfo"}}

+
+
+
+ +
+ +
+

{{msg . "download"}}

+ +
+ +
+ + + +{{template "home/footer.html"}} + + + + + + + \ No newline at end of file diff --git a/app/views/home/index_zh.html b/app/views/home/index_zh.html new file mode 100644 index 0000000..4dae8ff --- /dev/null +++ b/app/views/home/index_zh.html @@ -0,0 +1,139 @@ +{{template "home/header.html" .}} + +
+
+

leanote, {{msg . "moto"}}

+

{{msg . "moto3"}}

+

{{msg . "moto2"}}

+ +
+ {{msg . "fork github"}} +   +   + {{msg . "try"}} + {{if .openRegister}} +   +   + OR +   +   + {{msg . "register"}} + {{end}} +
+
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+

{{msg . "aboutLeanote"}}

+
+
+

{{msg . "knowledge"}}

+

{{msg . "knowledgeInfo"}}

+
+
+

{{msg . "share"}}

+

{{msg . "shareInfo"}}

+
+
+

{{msg . "cooperation"}}

+

{{msg . "cooperationInfo"}}

+
+
+

{{msg . "blog"}}

+

{{msg . "blogInfo"}}

+
+
+
+ +
+ +
+

{{msg . "download"}}

+ +
+ +
+ + + +{{template "home/footer.html"}} + + + + + + + \ No newline at end of file diff --git a/app/views/home/login.html b/app/views/home/login.html new file mode 100644 index 0000000..4b5a8ec --- /dev/null +++ b/app/views/home/login.html @@ -0,0 +1,146 @@ +{{template "home/header_box.html" .}} + + + +
+ +
+

leanote

+
+
{{msg . "login"}}
+
+
+ +
+ + +
+
+ + +
+ +
+ +
+ +
+ {{msg . "forgetPassword"}} + +
+ + +
+ +

{{msg . "hasAcount"}}

+ + {{if .openRegister}} + {{msg . "register"}} + {{msg . "or"}} + {{end}} + + {{msg . "try"}} +
+
+
+
+ +
+

+ {{msg . "home"}} +

+

+ leanote © 2014 +

+
+ + + + + + + \ No newline at end of file diff --git a/app/views/home/modal.html b/app/views/home/modal.html new file mode 100644 index 0000000..ff12a98 --- /dev/null +++ b/app/views/home/modal.html @@ -0,0 +1,22 @@ + \ No newline at end of file diff --git a/app/views/home/register.html b/app/views/home/register.html new file mode 100644 index 0000000..c8f9038 --- /dev/null +++ b/app/views/home/register.html @@ -0,0 +1,118 @@ +{{template "home/header_box.html" .}} +
+ +
+

leanote

+
+
{{msg . "register"}}
+
+
+ +
+ + +
+
+ + + {{msg . "passwordTips"}} +
+
+ + +
+ + + +
+ +

{{msg . "hadAcount"}}

+ + {{msg . "login"}} +
+
+
+
+ +
+

+ {{msg . "home"}} +

+

+ leanote © 2014 +

+
+ + + + + + + \ No newline at end of file diff --git a/app/views/html2Image/index.html b/app/views/html2Image/index.html new file mode 100644 index 0000000..9462631 --- /dev/null +++ b/app/views/html2Image/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + +{{.title}} + + + + +
+

+ {{.blog.Title}} +

+
+ {{ if .userBlog.Logo}} + + {{else}} + + {{end}} + {{.userInfo.Username}} + + {{if .blog.Tags}} + + {{blogTags .blog.Tags}} + {{end}} +
+ +
+ {{if .blog.IsMarkdown }} + +
+
+ {{else}} + {{.content | raw}} + {{end}} +
+
+ + + + + + + + + + +{{if .blog.IsMarkdown }} + + + + + + + + + + + + +{{end}} + + \ No newline at end of file diff --git a/app/views/html2Image/test.html b/app/views/html2Image/test.html new file mode 100644 index 0000000..e134cd2 --- /dev/null +++ b/app/views/html2Image/test.html @@ -0,0 +1,4 @@ +lif------------ +e + +you can \ No newline at end of file diff --git a/app/views/note/histories.html b/app/views/note/histories.html new file mode 100644 index 0000000..285d3b5 --- /dev/null +++ b/app/views/note/histories.html @@ -0,0 +1,29 @@ + \ No newline at end of file diff --git a/app/views/note/note-dev.html b/app/views/note/note-dev.html new file mode 100644 index 0000000..060c698 --- /dev/null +++ b/app/views/note/note-dev.html @@ -0,0 +1,889 @@ + + + + + + + + + + +leanote, Not Just A Notebook + + + + + + + + + + + + + + + +
+
+ + + + + +
+
+ +
+
+ loading... +
+
+
+
+
+ + + {{msg . "notebook"}} + +
+ +
+
+ +
+ +
    +
      +
      +
      + + + +
      +
      + + + {{msg . "share"}} + +
      + +
        + +
      +
      + +
      + + +
      + +
      + + +
      +
      + + +
      +
      +
      + +
      +
      +
      + + +
      + +
      + +
      +
      +
      + + +
      +
      +
      + +
      +
      + + + +
      +
        +
      +
      +
      + +
      + +
      + +
      +
      +
      +

      +
      + + + + + {{msg . "update"}} + + + + {{msg . "create"}} + +
      +
      + +
      +
      +
      +
      + +
      +
      + +
      + loading... +
      +
      + {{msg . "noNoteNewNoteTips"}} +
      +
      + +
      + {{msg . "canntNewNoteTips"}} +
      +
      +
      + +
      + + + + +
      +
      +
      + + +
      + + +
      + +
      + +
      +
      + +
      + +
      +
      + + +
      +
      +
      +

      + + {{msg . "nav"}} +

      +
      +
      +
      + + +
      +
      + Drop images to here + +
      +
        +
      +
      + + +
      + {{.noteContent}} +
      +
      + +
      +
      +
      + + +
      +
      +
      + +
      +
      +
      +
      +
      +
      +
      +
      +
      + +
      +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + +
      +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/views/note/note.html b/app/views/note/note.html new file mode 100644 index 0000000..030c1f4 --- /dev/null +++ b/app/views/note/note.html @@ -0,0 +1,889 @@ + + + + + + + + + + +leanote, Not Just A Notebook + + + + + + + + + + + + + + + +
      +
      + + + + + +
      +
      + +
      +
      + loading... +
      +
      +
      +
      +
      + + + {{msg . "notebook"}} + +
      + +
      +
      + +
      + +
        +
          +
          +
          + + + +
          +
          + + + {{msg . "share"}} + +
          + +
            + +
          +
          + +
          + + +
          + +
          + + +
          +
          + + +
          +
          +
          + +
          +
          +
          + + +
          + +
          + +
          +
          +
          + + +
          +
          +
          + +
          +
          + + + +
          +
            +
          +
          +
          + +
          + +
          + +
          +
          +
          +

          +
          + + + + + {{msg . "update"}} + + + + {{msg . "create"}} + +
          +
          + +
          +
          +
          +
          + +
          +
          + +
          + loading... +
          +
          + {{msg . "noNoteNewNoteTips"}} +
          +
          + +
          + {{msg . "canntNewNoteTips"}} +
          +
          +
          + +
          + + + + +
          +
          +
          + + +
          + + +
          + +
          + +
          +
          + +
          + +
          +
          + + +
          +
          +
          +

          + + {{msg . "nav"}} +

          +
          +
          +
          + + +
          +
          + Drop images to here + +
          +
            +
          +
          + + +
          + {{.noteContent}} +
          +
          + +
          +
          +
          + + +
          +
          +
          + +
          +
          +
          +
          +
          +
          +
          +
          +
          + +
          +
          +
          + + + + + + + + + + + + + + + + + + + + + + + + +
          +
          + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/views/notebook/Index.html b/app/views/notebook/Index.html new file mode 100644 index 0000000..4cb76d4 --- /dev/null +++ b/app/views/notebook/Index.html @@ -0,0 +1,23 @@ +{{set . "title" "Home"}} +{{template "header.html" .}} + +
          +
          +
          +
          +

          Hello, life

          +

          +
          +
          +
          +
          + +
          +
          +
          + {{template "flash.html" .}} +
          +
          +
          + +{{template "footer.html" .}} diff --git a/app/views/oauth/oauth_callback_error.html b/app/views/oauth/oauth_callback_error.html new file mode 100644 index 0000000..5a2b2c7 --- /dev/null +++ b/app/views/oauth/oauth_callback_error.html @@ -0,0 +1,32 @@ +{{template "home/header_box.html" .}} + +
          +
          +

          leanote

          +
          +
          We got a error
          +
          +
          + Sorry, we can't get your infomation. + +
          + Please {{msg . "login"}} Or {{msg . "register"}} +
          +
          +
          +
          +
          + +
          +

          + {{msg . "login"}} +   + {{msg . "home"}} +

          +

          + leanote © 2014 +

          +
          + + + \ No newline at end of file diff --git a/app/views/share/note_notebook_share_user_infos.html b/app/views/share/note_notebook_share_user_infos.html new file mode 100644 index 0000000..8940b59 --- /dev/null +++ b/app/views/share/note_notebook_share_user_infos.html @@ -0,0 +1,71 @@ + + \ No newline at end of file diff --git a/app/views/share/note_share_user_infos.html b/app/views/share/note_share_user_infos.html new file mode 100644 index 0000000..68bc9fe --- /dev/null +++ b/app/views/share/note_share_user_infos.html @@ -0,0 +1,84 @@ + + \ No newline at end of file diff --git a/app/views/user/account.html b/app/views/user/account.html new file mode 100644 index 0000000..617a34b --- /dev/null +++ b/app/views/user/account.html @@ -0,0 +1,272 @@ + + + diff --git a/app/views/user/active_email.html b/app/views/user/active_email.html new file mode 100644 index 0000000..6d7a162 --- /dev/null +++ b/app/views/user/active_email.html @@ -0,0 +1,32 @@ +{{template "home/header_box.html" .}} + +
          +
          +

          leanote

          +
          +
          验证邮箱 - {{if .ok}}成功{{else}}失败{{end}}
          +
          +
          + 您的邮箱 {{.email}} 验证 + {{if .ok}}成功{{else}}失败{{end}} + + {{if .msg}}
          + {{.msg}}{{end}} + +
          + 回到我的笔记 +
          +
          +
          +
          + +
          +

          + {{msg . "home"}} +

          +

          + leanote © 2014 +

          +
          + + \ No newline at end of file diff --git a/app/views/user/update_email.html b/app/views/user/update_email.html new file mode 100644 index 0000000..2aaa6ad --- /dev/null +++ b/app/views/user/update_email.html @@ -0,0 +1,35 @@ +{{template "home/header_box.html" .}} + +
          +
          +

          leanote

          +
          +
          验证邮箱 - {{if .ok}}成功{{else}}失败{{end}}
          +
          +
          + 您的邮箱 {{.email}} 验证 + {{if .ok}}成功{{else}}失败{{end}} + {{if .ok}} +
          + 您的新登录邮箱为 {{.email}} + {{end}} + + {{if .msg}}
          {{.msg}}{{end}} + +
          + 回到我的笔记 +
          +
          +
          +
          + +
          +

          + {{msg . "home"}} +

          +

          + leanote © 2014 +

          +
          + + \ No newline at end of file