diff --git a/app.js b/app.js index 7d4f854087..64973f2ccb 100644 --- a/app.js +++ b/app.js @@ -51,7 +51,7 @@ fs.readFile(path.join(__dirname, 'config.json'), function(err, data) { 'emails/reset', 'emails/reset_plaintext', 'emails/email_confirm', 'emails/email_confirm_plaintext', 'emails/header', 'emails/footer', 'install/header', 'install/footer', 'install/redis', - 'noscript/topic' + 'noscript/header', 'noscript/home', 'noscript/category', 'noscript/topic' ]); templates.ready(function() { diff --git a/public/css/noscript.less b/public/css/noscript.less index 0c9ddd3ebb..3e5508e560 100644 --- a/public/css/noscript.less +++ b/public/css/noscript.less @@ -1,15 +1,50 @@ @import "mixins"; noscript { - .posts { + .default { + list-style-type: none; + padding: 1em; + margin-bottom: 1em; + + &:nth-child(even) { + background: rgba(191,191,191,0.2); + } + + &:nth-child(odd) { + background: rgba(223,223,223,0.2); + } + } + + .categories { li { - list-style-type: none; - padding: 1em; - margin-bottom: 1em; + .default; + + .icon { + float: left; + margin-right: 1em; + } - &:nth-child(even) { - background: rgba(192,192,192,0.2); + a { + font-size: 20px; } } } + + .topics { + li { + .default; + } + + .teaser { + img { + float: left; + } + } + } + + .posts { + li { + .default; + } + } } \ No newline at end of file diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 50a2673fe5..459a3269cf 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -19,7 +19,7 @@ define(function() { composer.postContainer = document.createElement('div'); composer.postContainer.className = 'post-window row-fluid'; composer.postContainer.innerHTML = '
' + - '' + + '' + '
' + '
' + '' + @@ -28,12 +28,12 @@ define(function() { '' + '
' + '
' + - '' + - '' + - '' + + '' + + '' + + '' + '
' + '
' + - '' + + '' + '
'; composer.listEl = composer.btnContainer.querySelector('ul'); diff --git a/public/templates/category.tpl b/public/templates/category.tpl index 38fa7a059f..b43c11cf62 100644 --- a/public/templates/category.tpl +++ b/public/templates/category.tpl @@ -24,7 +24,7 @@
- +

{topics.teaser_username}: {topics.teaser_text}

posted {topics.teaser_timestamp} ago
diff --git a/public/templates/noscript/category.tpl b/public/templates/noscript/category.tpl new file mode 100644 index 0000000000..00728916b0 --- /dev/null +++ b/public/templates/noscript/category.tpl @@ -0,0 +1,18 @@ + + \ No newline at end of file diff --git a/public/templates/noscript/header.tpl b/public/templates/noscript/header.tpl new file mode 100644 index 0000000000..83be5b0fbc --- /dev/null +++ b/public/templates/noscript/header.tpl @@ -0,0 +1,8 @@ +
+

+ Your browser does not seem to support javascript. As a result, your viewing experience will be diminished. +

+

+ Please download a browser that supports javascript, or enable it, if it disabled (i.e. NoScript). +

+
diff --git a/public/templates/noscript/home.tpl b/public/templates/noscript/home.tpl new file mode 100644 index 0000000000..9a307c8583 --- /dev/null +++ b/public/templates/noscript/home.tpl @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/public/templates/noscript/topic.tpl b/public/templates/noscript/topic.tpl index a5d6743af8..b1581ddbe6 100644 --- a/public/templates/noscript/topic.tpl +++ b/public/templates/noscript/topic.tpl @@ -1,11 +1,3 @@ -
-

- Your browser does not seem to support javascript. As a result, your viewing experience will be diminished. -

-

- Please download a browser that supports javascript, or enable it, if it disabled (i.e. NoScript). -

-