💄 Added relative publishing date field
This commit is contained in:
parent
2e54d14167
commit
67c8df843d
6 changed files with 89 additions and 44 deletions
|
@ -16,9 +16,16 @@
|
|||
"fuzzy": true
|
||||
},
|
||||
{
|
||||
"id": "Published at",
|
||||
"message": "Published at",
|
||||
"translation": "Published at",
|
||||
"id": "Published exactly at",
|
||||
"message": "Published exactly at",
|
||||
"translation": "Published exactly at",
|
||||
"translatorComment": "Copied from source.",
|
||||
"fuzzy": true
|
||||
},
|
||||
{
|
||||
"id": "Published after",
|
||||
"message": "Published after",
|
||||
"translation": "Published after",
|
||||
"translatorComment": "Copied from source.",
|
||||
"fuzzy": true
|
||||
},
|
||||
|
|
|
@ -12,9 +12,14 @@
|
|||
"translation": "Содержимое"
|
||||
},
|
||||
{
|
||||
"id": "Published at",
|
||||
"message": "Published at",
|
||||
"translation": "Дата публикации"
|
||||
"id": "Published exactly at",
|
||||
"message": "Published exactly at",
|
||||
"translation": "Опубликовать точно в"
|
||||
},
|
||||
{
|
||||
"id": "Published after",
|
||||
"message": "Published after",
|
||||
"translation": "Опубликовать через"
|
||||
},
|
||||
{
|
||||
"id": "Tags",
|
||||
|
|
|
@ -12,9 +12,14 @@
|
|||
"translation": "Содержимое"
|
||||
},
|
||||
{
|
||||
"id": "Published at",
|
||||
"message": "Published at",
|
||||
"translation": "Дата публикации"
|
||||
"id": "Published exactly at",
|
||||
"message": "Published exactly at",
|
||||
"translation": "Опубликовать точно в"
|
||||
},
|
||||
{
|
||||
"id": "Published after",
|
||||
"message": "Published after",
|
||||
"translation": "Опубликовать через"
|
||||
},
|
||||
{
|
||||
"id": "Tags",
|
||||
|
|
|
@ -39,26 +39,30 @@ func init() {
|
|||
}
|
||||
|
||||
var messageKeyToIndex = map[string]int{
|
||||
"Content": 1,
|
||||
"Name": 0,
|
||||
"Published at": 2,
|
||||
"Send": 4,
|
||||
"Tags": 3,
|
||||
"Content": 1,
|
||||
"Name": 0,
|
||||
"Published after": 3,
|
||||
"Published exactly at": 2,
|
||||
"Send": 5,
|
||||
"Tags": 4,
|
||||
}
|
||||
|
||||
var enIndex = []uint32{ // 6 elements
|
||||
0x00000000, 0x00000005, 0x0000000d, 0x0000001a,
|
||||
0x0000001f, 0x00000024,
|
||||
} // Size: 48 bytes
|
||||
var enIndex = []uint32{ // 7 elements
|
||||
0x00000000, 0x00000005, 0x0000000d, 0x00000022,
|
||||
0x00000032, 0x00000037, 0x0000003c,
|
||||
} // Size: 52 bytes
|
||||
|
||||
const enData string = "\x02Name\x02Content\x02Published at\x02Tags\x02Send"
|
||||
const enData string = "" + // Size: 60 bytes
|
||||
"\x02Name\x02Content\x02Published exactly at\x02Published after\x02Tags" +
|
||||
"\x02Send"
|
||||
|
||||
var ruIndex = []uint32{ // 6 elements
|
||||
0x00000000, 0x00000011, 0x00000026, 0x00000044,
|
||||
0x0000004d, 0x00000060,
|
||||
} // Size: 48 bytes
|
||||
var ruIndex = []uint32{ // 7 elements
|
||||
0x00000000, 0x00000011, 0x00000026, 0x0000004d,
|
||||
0x00000071, 0x0000007a, 0x0000008d,
|
||||
} // Size: 52 bytes
|
||||
|
||||
const ruData string = "" + // Size: 96 bytes
|
||||
"\x02Название\x02Содержимое\x02Дата публикации\x02Тэги\x02Отправить"
|
||||
const ruData string = "" + // Size: 141 bytes
|
||||
"\x02Название\x02Содержимое\x02Опубликовать точно в\x02Опубликовать через" +
|
||||
"\x02Тэги\x02Отправить"
|
||||
|
||||
// Total table size 228 bytes (0KiB); checksum: 36937515
|
||||
// Total table size 305 bytes (0KiB); checksum: 8DEE5E28
|
||||
|
|
|
@ -56,7 +56,7 @@ Editor — Micropub
|
|||
|
||||
<div>
|
||||
<label>
|
||||
{%= pe.t(`Published at`) %}
|
||||
{%= pe.t(`Published exactly at`) %}
|
||||
<input type="datetime-local"
|
||||
name="published"
|
||||
min="1970-01-01T00:00:00"
|
||||
|
@ -65,6 +65,16 @@ Editor — Micropub
|
|||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>
|
||||
{%= pe.t(`Published after`) %}
|
||||
<input type="text"
|
||||
name="published"
|
||||
value=""
|
||||
pattern="[+-]?\d+(ns|us|µs|ms|s|m|h)" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>
|
||||
{%= pe.t(`Tags`) %}
|
||||
|
|
|
@ -148,7 +148,7 @@ func (pe *PageEditor) streambody(qw422016 *qt422016.Writer) {
|
|||
<label>
|
||||
`)
|
||||
//line web/template/editor.qtpl:59
|
||||
pe.streamt(qw422016, `Published at`)
|
||||
pe.streamt(qw422016, `Published exactly at`)
|
||||
//line web/template/editor.qtpl:59
|
||||
qw422016.N().S(`
|
||||
<input type="datetime-local"
|
||||
|
@ -167,9 +167,23 @@ func (pe *PageEditor) streambody(qw422016 *qt422016.Writer) {
|
|||
<label>
|
||||
`)
|
||||
//line web/template/editor.qtpl:70
|
||||
pe.streamt(qw422016, `Tags`)
|
||||
pe.streamt(qw422016, `Published after`)
|
||||
//line web/template/editor.qtpl:70
|
||||
qw422016.N().S(`
|
||||
<input type="text"
|
||||
name="published"
|
||||
value=""
|
||||
pattern="[+-]?\d+(ns|us|µs|ms|s|m|h)" />
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<label>
|
||||
`)
|
||||
//line web/template/editor.qtpl:80
|
||||
pe.streamt(qw422016, `Tags`)
|
||||
//line web/template/editor.qtpl:80
|
||||
qw422016.N().S(`
|
||||
<input type="text"
|
||||
name="category"
|
||||
pattern="[a-zA-Z0-9-, ]"
|
||||
|
@ -180,39 +194,39 @@ func (pe *PageEditor) streambody(qw422016 *qt422016.Writer) {
|
|||
<div>
|
||||
<button type="submit">
|
||||
`)
|
||||
//line web/template/editor.qtpl:80
|
||||
//line web/template/editor.qtpl:90
|
||||
pe.streamt(qw422016, `Send`)
|
||||
//line web/template/editor.qtpl:80
|
||||
//line web/template/editor.qtpl:90
|
||||
qw422016.N().S(`
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
`)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
}
|
||||
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
func (pe *PageEditor) writebody(qq422016 qtio422016.Writer) {
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
pe.streambody(qw422016)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
}
|
||||
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
func (pe *PageEditor) body() string {
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
pe.writebody(qb422016)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
qs422016 := string(qb422016.B)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
qt422016.ReleaseByteBuffer(qb422016)
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
return qs422016
|
||||
//line web/template/editor.qtpl:84
|
||||
//line web/template/editor.qtpl:94
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue