diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000..ca821f9
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,9 @@
+root = true
+
+[*]
+indent_style = tab
+indent_size = 4
+
+[*.{html,css,scss}]
+indent_style = space
+indent_size = 2
diff --git a/plugins/base/public/assets/style.css b/plugins/base/public/assets/style.css
index c27f10f..4f91f63 100644
--- a/plugins/base/public/assets/style.css
+++ b/plugins/base/public/assets/style.css
@@ -1,5 +1,5 @@
iframe {
- width: 100%;
- height: 400px;
- border: 0;
+ width: 100%;
+ height: 400px;
+ border: 0;
}
diff --git a/plugins/base/public/compose.html b/plugins/base/public/compose.html
index 4d69c81..0db84c0 100644
--- a/plugins/base/public/compose.html
+++ b/plugins/base/public/compose.html
@@ -3,31 +3,31 @@
koushin
- Back
+ Back
Compose new message
{{template "foot.html"}}
diff --git a/plugins/base/public/login.html b/plugins/base/public/login.html
index 7378935..94f1b23 100644
--- a/plugins/base/public/login.html
+++ b/plugins/base/public/login.html
@@ -3,13 +3,13 @@
koushin
{{template "foot.html"}}
diff --git a/plugins/base/public/mailbox.html b/plugins/base/public/mailbox.html
index d480440..d19c73d 100644
--- a/plugins/base/public/mailbox.html
+++ b/plugins/base/public/mailbox.html
@@ -3,48 +3,48 @@
koushin
- Logout · Compose
+ Logout · Compose
{{.Mailbox.Name}}
Mailboxes:
{{if .Messages}}
- Messages:
-
+ Messages:
+
-
- {{if ge .PrevPage 0}}
- Prev
- {{end}}
- {{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}}
- {{if ge .NextPage 0}}
- Next
- {{end}}
-
+
+ {{if ge .PrevPage 0}}
+ Prev
+ {{end}}
+ {{if and (ge .PrevPage 0) (ge .NextPage 0)}}·{{end}}
+ {{if ge .NextPage 0}}
+ Next
+ {{end}}
+
{{else}}
- No message.
+ No message.
{{end}}
{{template "foot.html"}}
diff --git a/plugins/base/public/message.html b/plugins/base/public/message.html
index 3dc7f62..a973881 100644
--- a/plugins/base/public/message.html
+++ b/plugins/base/public/message.html
@@ -3,105 +3,105 @@
koushin
-
- Back
-
+
+ Back
+
- {{if .Message.Envelope.Subject}}
- {{.Message.Envelope.Subject}}
- {{else}}
- (No subject)
- {{end}}
+ {{if .Message.Envelope.Subject}}
+ {{.Message.Envelope.Subject}}
+ {{else}}
+ (No subject)
+ {{end}}
{{if .Flags}}
-
+
{{end}}
{{define "addr-list"}}
- {{range $i, $addr := .}}
- {{if $i}},{{end}}
- {{.PersonalName}}
- <{{.Address}}>
- {{end}}
+ {{range $i, $addr := .}}
+ {{if $i}},{{end}}
+ {{.PersonalName}}
+ <{{.Address}}>
+ {{end}}
{{end}}
- -
- Date: {{.Message.Envelope.Date | formatdate}}
-
- -
- From: {{template "addr-list" .Message.Envelope.From}}
-
- -
- To: {{template "addr-list" .Message.Envelope.To}}
-
- {{if .Message.Envelope.Cc}}
- -
- Cc: {{template "addr-list" .Message.Envelope.Cc}}
-
- {{end}}
- {{if .Message.Envelope.Bcc}}
- -
- Bcc: {{template "addr-list" .Message.Envelope.Bcc}}
-
- {{end}}
+ -
+ Date: {{.Message.Envelope.Date | formatdate}}
+
+ -
+ From: {{template "addr-list" .Message.Envelope.From}}
+
+ -
+ To: {{template "addr-list" .Message.Envelope.To}}
+
+ {{if .Message.Envelope.Cc}}
+ -
+ Cc: {{template "addr-list" .Message.Envelope.Cc}}
+
+ {{end}}
+ {{if .Message.Envelope.Bcc}}
+ -
+ Bcc: {{template "addr-list" .Message.Envelope.Bcc}}
+
+ {{end}}
{{define "message-part-tree"}}
- {{/* nested templates can't access the parent's context */}}
- {{$ = index . 0}}
- {{with index . 1}}
-
- {{if eq $.PartPath .PathString}}{{end}}
- {{.String}}
- {{if eq $.PartPath .PathString}}{{end}}
-
- {{if .Children}}
-
- {{range .Children}}
- - {{template "message-part-tree" (tuple $ .)}}
- {{end}}
-
- {{end}}
- {{end}}
+ {{/* nested templates can't access the parent's context */}}
+ {{$ = index . 0}}
+ {{with index . 1}}
+
+ {{if eq $.PartPath .PathString}}{{end}}
+ {{.String}}
+ {{if eq $.PartPath .PathString}}{{end}}
+
+ {{if .Children}}
+
+ {{range .Children}}
+ - {{template "message-part-tree" (tuple $ .)}}
+ {{end}}
+
+ {{end}}
+ {{end}}
{{end}}
Parts:
@@ -111,23 +111,23 @@
{{if .Body}}
-
- {{if .Message.HasFlag "\\Draft"}}
- Edit draft
- {{else}}
- Reply
- {{end}}
-
- {{if .IsHTML}}
-
-
-
- {{else}}
- {{.Body}}
- {{end}}
+
+ {{if .Message.HasFlag "\\Draft"}}
+ Edit draft
+ {{else}}
+ Reply
+ {{end}}
+
+ {{if .IsHTML}}
+
+
+
+ {{else}}
+ {{.Body}}
+ {{end}}
{{else}}
- Can't preview this message part.
- Download
+ Can't preview this message part.
+ Download
{{end}}
{{template "foot.html"}}