Implement forum topic voting and tag change pruning (#3580)

This commit is contained in:
Albert Yi
2018-04-16 16:09:39 -07:00
parent 45fad069d7
commit f2b525a6d2
182 changed files with 558 additions and 554 deletions

View File

@@ -8,6 +8,6 @@
//= require jquery.qtip.js
//= require ugoira_player.js
//= require stupidtable.js
//= require rails.js
//= require rails-ujs
//= require common.js
//= require_tree .

View File

@@ -0,0 +1,2 @@
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.

View File

@@ -0,0 +1,3 @@
// Place all the styles related to the ForumPostVotesController controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

View File

@@ -5,10 +5,30 @@ div.list-of-forum-posts {
word-wrap: break-word;
box-shadow: 1px 1px 2px #AAA;
a.voted {
font-weight: bold;
}
span.desc {
color: grey;
}
&:target {
background-color: #FFC;
}
.vote-score-up {
color: green;
}
.vote-score-meh {
color: goldenrod;
}
.vote-score-down {
color: red;
}
div.author {
padding: 1em 1em 0 1em;
width: 12em;
@@ -26,6 +46,10 @@ div.list-of-forum-posts {
menu {
margin-top: 0.5em;
ul.votes {
margin: 0.5em 0;
}
li {
margin-right: 1em;
}