add css for highliting a specific forum post
This commit is contained in:
@@ -9,6 +9,10 @@ div.list-of-forum-posts {
|
|||||||
margin-bottom: 3em;
|
margin-bottom: 3em;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
|
||||||
|
&:target {
|
||||||
|
background-color: #FFC;
|
||||||
|
}
|
||||||
|
|
||||||
div.author {
|
div.author {
|
||||||
width: 12em;
|
width: 12em;
|
||||||
float: left;
|
float: left;
|
||||||
|
|||||||
@@ -154,6 +154,10 @@ class ForumTopic < ActiveRecord::Base
|
|||||||
self.updater_id = CurrentUser.id
|
self.updater_id = CurrentUser.id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def page_for(post_id)
|
||||||
|
(posts.where("id < ?", post_id).count / Danbooru.config.posts_per_page.to_f).ceil
|
||||||
|
end
|
||||||
|
|
||||||
def last_page
|
def last_page
|
||||||
(response_count / Danbooru.config.posts_per_page.to_f).ceil
|
(response_count / Danbooru.config.posts_per_page.to_f).ceil
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class PostArchive < ActiveRecord::Base
|
|||||||
sqs_service.send_message(msg)
|
sqs_service.send_message(msg)
|
||||||
end
|
end
|
||||||
|
|
||||||
def export_to_archives(version_id = 1451061)
|
def export_to_archives(version_id = 4394763)
|
||||||
PostVersion.where("id > ?", version_id).find_each do |version|
|
PostVersion.where("id > ?", version_id).find_each do |version|
|
||||||
previous = version.previous
|
previous = version.previous
|
||||||
tags = version.tags.scan(/\S+/)
|
tags = version.tags.scan(/\S+/)
|
||||||
|
|||||||
Reference in New Issue
Block a user