Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

footer

  • Loading branch information...
commit 9a657046cdc6cd29ea0fad285bf9b9b50e13beb1 1 parent b3c9df9
@releu releu authored
View
2  app/assets/javascripts/cache.js.coffee
@@ -146,7 +146,7 @@ $ ->
$comment.fadeOut
done: ->
$comment.remove()
- if $('div.comments-articles').empty()
+ if $('div.comments-articles article.comment').length == 0
$('div.comments-empty').show()
$new_comment = $('div.new-comment-form form:first')
View
11 app/assets/stylesheets/styles.less
@@ -492,6 +492,17 @@ a.secondary {
padding-bottom: 5px;
}
+.main-footer-copyright {
+ float: right;
+ margin: 19px 0 0;
+ text-align: right;
+ color: @text;
+
+ a {
+ font-weight: bold;
+ }
+}
+
.posts-similar {
width: 620px;
float: right;
View
6 app/views/layouts/new_application.html.slim
@@ -53,5 +53,11 @@ html
a class="secondary" href="#" Tags cloud
li
a class="secondary" href="#" Map
+ p class="main-footer-copyright"
+ | Created by
+ = link_to 'Redstone Labs', 'https://github.com/redstonelabs'
+ br
+ | & Sponsored by
+ = link_to 'Evrone', 'http://evrone.com'
div class="clear"
div id="flash"
View
13 app/views/posts/_comments.html.slim
@@ -18,10 +18,11 @@ section class="comments"
= link_to current_user, title: current_user.username do
= avatar_image current_user, 84
div class="new-comment-form"
- = form_for @comment, url: post_comments_path(@post, format: :js), remote: true do |f|
- fieldset
- = f.text_area :content, rows: 3
- div class="form-actions"
- = f.submit 'Preview', class: 'button', data: { action: api_markdown_path }
- = f.submit 'Comment', class: 'button', data: { action: url_for([@post, :comments]) }
+ fieldset
+ = text_area_tag :content, '', rows: 3
+ div class="new-comment-preview"
+ div class="form-actions"
+ = link_to 'Preview', api_markdown_path, class: 'button new-comment-preview', remote: true
+ = link_to 'Edit', '#', class: 'button new-comment-edit'
+ = link_to 'Comment', [@post, :comments], class: 'button new-comment-submit', data: { method: :post }, remote: true
div class="clear"
Please sign in to comment.
Something went wrong with that request. Please try again.