liquid_feedback_frontend
diff app/main/index/404.lua @ 1309:32cc544d5a5b
Cumulative patch for upcoming frontend version 4
| author | bsw/jbe |
|---|---|
| date | Sun Jul 15 14:07:29 2018 +0200 (2018-07-15) |
| parents | 701a5cf6b067 |
| children |
line diff
1.1 --- a/app/main/index/404.lua Thu Jun 23 03:30:57 2016 +0200 1.2 +++ b/app/main/index/404.lua Sun Jul 15 14:07:29 2018 +0200 1.3 @@ -1,13 +1,21 @@ 1.4 +request.set_status("404 Not found") 1.5 + 1.6 ui.title("404 Not found") 1.7 1.8 -ui.section(function() 1.9 - ui.sectionHead(function() 1.10 - ui.heading{ level = 1, content = _"Page not found" } 1.11 - end) 1.12 - ui.sectionRow(function() 1.13 - ui.link{ 1.14 - content = _"Go back to home page", 1.15 - module = "index", view = "index" 1.16 - } 1.17 - end) 1.18 -end) 1.19 \ No newline at end of file 1.20 +ui.grid{ content = function() 1.21 + 1.22 + ui.cell_main{ content = function() 1.23 + 1.24 + ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function() 1.25 + ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.26 + ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"Page not found" } 1.27 + end } 1.28 + ui.container{ attr = { class = "mdl-card__content" }, content = function() 1.29 + ui.link{ 1.30 + content = _"Go back to home page", 1.31 + module = "index", view = "index" 1.32 + } 1.33 + end } 1.34 + end } 1.35 + end } 1.36 +end }