1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-23 04:27:03 +00:00

Follow meta-linter recommendations for all of Inbucket

- Rename BUILD_DATE to BUILDDATE in goxc
- Update travis config
- Follow linter recommendations for inbucket.go
- Follow linter recommendations for config package
- Follow linter recommendations for log package
- Follow linter recommendations for pop3d package
- Follow linter recommendations for smtpd package
- Follow linter recommendations for web package
- Fix Id -> ID in templates
- Add shebang to REST demo scripts
- Add or refine many comments
This commit is contained in:
James Hillyerd
2016-02-20 23:20:22 -08:00
parent 83f9c6aa49
commit e6b7e335cb
34 changed files with 607 additions and 411 deletions

View File

@@ -1,6 +1,6 @@
{{$name := .name}}
{{range .messages}}
<button id="{{.Id}}" type="button" class="listEntry list-group-item">
<button id="{{.ID}}" type="button" class="listEntry list-group-item">
<div class="row">
<div class="col-sm-4 col-md-12 text-primary">{{.Subject}}</div>
<div class="col-sm-4 col-md-12 small">{{.From}}</div>

View File

@@ -1,5 +1,5 @@
{{$name := .name}}
{{$id := .message.Id}}
{{$id := .message.ID}}
<div class="btn-group btn-group-sm message-controls" role="group" aria-label="Message Controls">
<button type="button"
class="btn btn-primary"
@@ -9,20 +9,20 @@
</button>
<button type="button"
class="btn btn-danger"
onClick="deleteMessage('{{.message.Id}}');">
onClick="deleteMessage('{{.message.ID}}');">
<span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
Delete
</button>
<button type="button"
class="btn btn-primary"
onClick="messageSource('{{.message.Id}}');">
onClick="messageSource('{{.message.ID}}');">
<span class="glyphicon glyphicon-education" aria-hidden="true"></span>
Source
</button>
{{if .htmlAvailable}}
<button type="button"
class="btn btn-primary"
onClick="htmlView('{{.message.Id}}');">
onClick="htmlView('{{.message.ID}}');">
<span class="glyphicon glyphicon-new-window" aria-hidden="true"></span>
HTML
</button>