-
New Tag Alias
+
New Tag Alias
<%= simple_form_for(@tag_alias) do |f| %>
<%= f.input :antecedent_name, :label => "From" %>
<%= f.input :consequent_name, :label => "To" %>
diff --git a/app/views/tag_implications/new.html.erb b/app/views/tag_implications/new.html.erb
index 3824d7632..bdc4a56cd 100644
--- a/app/views/tag_implications/new.html.erb
+++ b/app/views/tag_implications/new.html.erb
@@ -1,6 +1,6 @@
-
New Tag Implication
+ New Tag Implication
<%= simple_form_for(@tag_implication) do |f| %>
<%= f.input :antecedent_name, :label => "From" %>
<%= f.input :consequent_name, :label => "To" %>
diff --git a/app/views/tags/_secondary_links.html.erb b/app/views/tags/_secondary_links.html.erb
index 7add1acfa..6f226f6af 100644
--- a/app/views/tags/_secondary_links.html.erb
+++ b/app/views/tags/_secondary_links.html.erb
@@ -2,8 +2,6 @@
<% end %>
diff --git a/app/views/tags/search.html.erb b/app/views/tags/search.html.erb
index 768df8a70..53fe053d7 100644
--- a/app/views/tags/search.html.erb
+++ b/app/views/tags/search.html.erb
@@ -8,3 +8,5 @@
<% end %>
+
+<%= render "secondary_links" %>
\ No newline at end of file
diff --git a/app/views/unapprovals/index.html.erb b/app/views/unapprovals/index.html.erb
deleted file mode 100644
index e69de29bb..000000000
diff --git a/app/views/unapprovals/new.html.erb b/app/views/unapprovals/new.html.erb
deleted file mode 100644
index 93e43666d..000000000
--- a/app/views/unapprovals/new.html.erb
+++ /dev/null
@@ -1,5 +0,0 @@
-
You can unapprove a post if you believe it breaks the rules or doesn't belong on this site. You must provide a reason.
-<%= form_for(@unapproval, :remote => true, :format => :js) do |f| %>
- <%= hidden_field_tag "unapproval[post_id]", @unapproval.post_id %>
- <%= f.text_area :reason, :size => "40x5" %>
-<% end %>
diff --git a/config/routes.rb b/config/routes.rb
index ff25e65df..fd74f8ef7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -58,6 +58,8 @@ Danbooru::Application.routes.draw do
end
resources :post_versions, :only => [:index]
+ resources :post_flags, :only => [:new, :index, :create]
+ resources :post_appeals, :only => [:new, :index, :create]
resource :session
resources :tags do
collection do
@@ -71,7 +73,6 @@ Danbooru::Application.routes.draw do
end
resources :tag_implications
resources :tag_subscriptions
- resources :unapprovals
resources :uploads
resources :users
resources :user_feedback
diff --git a/db/migrate/20100209201251_create_unapprovals.rb b/db/migrate/20100209201251_create_unapprovals.rb
deleted file mode 100644
index 00462bdc9..000000000
--- a/db/migrate/20100209201251_create_unapprovals.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-class CreateUnapprovals < ActiveRecord::Migration
- def self.up
- create_table :unapprovals do |t|
- t.column :post_id, :integer, :null => false
- t.column :reason, :text
- t.column :unapprover_id, :integer, :null => false
- t.column :unapprover_ip_addr, "inet", :null => false
- t.timestamps
- end
-
- add_index :unapprovals, :post_id
- end
-
- def self.down
- drop_table :unapprovals
- end
-end
diff --git a/db/migrate/20110328215652_create_post_flags.rb b/db/migrate/20110328215652_create_post_flags.rb
new file mode 100644
index 000000000..03b6f4605
--- /dev/null
+++ b/db/migrate/20110328215652_create_post_flags.rb
@@ -0,0 +1,19 @@
+class CreatePostFlags < ActiveRecord::Migration
+ def self.up
+ create_table :post_flags do |t|
+ t.column :post_id, :integer, :null => false
+ t.column :creator_id, :integer, :null => false
+ t.column :creator_ip_addr, :inet, :null => false
+ t.column :reason, :text
+ t.timestamps
+ end
+
+ add_index :post_flags, :post_id
+ add_index :post_flags, :creator_id
+ add_index :post_flags, :creator_ip_addr
+ end
+
+ def self.down
+ drop_table :post_flags
+ end
+end
diff --git a/db/migrate/20110328215701_create_post_appeals.rb b/db/migrate/20110328215701_create_post_appeals.rb
new file mode 100644
index 000000000..27b889bea
--- /dev/null
+++ b/db/migrate/20110328215701_create_post_appeals.rb
@@ -0,0 +1,19 @@
+class CreatePostAppeals < ActiveRecord::Migration
+ def self.up
+ create_table :post_appeals do |t|
+ t.column :post_id, :integer, :null => false
+ t.column :creator_id, :integer, :null => false
+ t.column :creator_ip_addr, :integer, :null => false
+ t.column :reason, :text
+ t.timestamps
+ end
+
+ add_index :post_appeals, :post_id
+ add_index :post_appeals, :creator_id
+ add_index :post_appeals, :creator_ip_addr
+ end
+
+ def self.down
+ drop_table :post_appeals
+ end
+end
diff --git a/public/javascripts/compiled/default.js b/public/javascripts/compiled/default.js
index 8cc5a97e9..5c138a0f1 100644
--- a/public/javascripts/compiled/default.js
+++ b/public/javascripts/compiled/default.js
@@ -1113,27 +1113,27 @@ $(document).ready(function() {
Danbooru.Favorite.initialize_all();
});
(function() {
- Danbooru.Unapproval = {};
+ Danbooru.PostFlag = {};
- Danbooru.Unapproval.initialize_all = function() {
- this.initialize_unapprove();
- this.hide_or_show_unapprove_link();
+ Danbooru.PostFlag.initialize_all = function() {
+ this.initialize_flag();
+ this.hide_or_show_flag_link();
}
- Danbooru.Unapproval.hide_or_show_unapprove_link = function() {
- if (Danbooru.meta("post-is-unapprovable") != "true") {
- $("a#unapprove").hide();
+ Danbooru.PostFlag.hide_or_show_flag_link = function() {
+ if (Danbooru.meta("post-is-deleted") == "true") {
+ $("a#flag").hide();
}
}
- Danbooru.Unapproval.initialize_unapprove = function() {
- $("#unapprove-dialog").dialog({
+ Danbooru.PostFlag.initialize_flag = function() {
+ $("#flag-dialog").dialog({
autoOpen: false,
- width: 400,
+ width: 700,
modal: true,
buttons: {
"Submit": function() {
- $("#unapprove-dialog form").submit();
+ $("#flag-dialog form").submit();
$(this).dialog("close");
},
"Cancel": function() {
@@ -1142,15 +1142,55 @@ $(document).ready(function() {
}
});
- $("a#unapprove").click(function(e) {
+ $("a#flag").click(function(e) {
e.preventDefault();
- $("#unapprove-dialog").dialog("open");
+ $("#flag-dialog").dialog("open");
});
}
})();
$(document).ready(function() {
- Danbooru.Unapproval.initialize_all();
+ Danbooru.PostFlag.initialize_all();
+});
+(function() {
+ Danbooru.PostAppeal = {};
+
+ Danbooru.PostAppeal.initialize_all = function() {
+ this.initialize_appeal();
+ this.hide_or_show_appeal_link();
+ }
+
+ Danbooru.PostAppeal.hide_or_show_appeal_link = function() {
+ if (Danbooru.meta("post-is-deleted") != "true") {
+ $("a#appeal").hide();
+ }
+ }
+
+ Danbooru.PostAppeal.initialize_appeal = function() {
+ $("#appeal-dialog").dialog({
+ autoOpen: false,
+ width: 700,
+ modal: true,
+ buttons: {
+ "Submit": function() {
+ $("#appeal-dialog form").submit();
+ $(this).dialog("close");
+ },
+ "Cancel": function() {
+ $(this).dialog("close");
+ }
+ }
+ });
+
+ $("a#appeal").click(function(e) {
+ e.preventDefault();
+ $("#appeal-dialog").dialog("open");
+ });
+ }
+})();
+
+$(document).ready(function() {
+ Danbooru.PostAppeal.initialize_all();
});
(function() {
Danbooru.PostModeration = {};
diff --git a/public/javascripts/src/app/post_appeals.js b/public/javascripts/src/app/post_appeals.js
new file mode 100644
index 000000000..6f7e34f63
--- /dev/null
+++ b/public/javascripts/src/app/post_appeals.js
@@ -0,0 +1,40 @@
+(function() {
+ Danbooru.PostAppeal = {};
+
+ Danbooru.PostAppeal.initialize_all = function() {
+ this.initialize_appeal();
+ this.hide_or_show_appeal_link();
+ }
+
+ Danbooru.PostAppeal.hide_or_show_appeal_link = function() {
+ if (Danbooru.meta("post-is-deleted") != "true") {
+ $("a#appeal").hide();
+ }
+ }
+
+ Danbooru.PostAppeal.initialize_appeal = function() {
+ $("#appeal-dialog").dialog({
+ autoOpen: false,
+ width: 700,
+ modal: true,
+ buttons: {
+ "Submit": function() {
+ $("#appeal-dialog form").submit();
+ $(this).dialog("close");
+ },
+ "Cancel": function() {
+ $(this).dialog("close");
+ }
+ }
+ });
+
+ $("a#appeal").click(function(e) {
+ e.preventDefault();
+ $("#appeal-dialog").dialog("open");
+ });
+ }
+})();
+
+$(document).ready(function() {
+ Danbooru.PostAppeal.initialize_all();
+});
diff --git a/public/javascripts/src/app/post_flags.js b/public/javascripts/src/app/post_flags.js
new file mode 100644
index 000000000..874a82b1f
--- /dev/null
+++ b/public/javascripts/src/app/post_flags.js
@@ -0,0 +1,40 @@
+(function() {
+ Danbooru.PostFlag = {};
+
+ Danbooru.PostFlag.initialize_all = function() {
+ this.initialize_flag();
+ this.hide_or_show_flag_link();
+ }
+
+ Danbooru.PostFlag.hide_or_show_flag_link = function() {
+ if (Danbooru.meta("post-is-deleted") == "true") {
+ $("a#flag").hide();
+ }
+ }
+
+ Danbooru.PostFlag.initialize_flag = function() {
+ $("#flag-dialog").dialog({
+ autoOpen: false,
+ width: 700,
+ modal: true,
+ buttons: {
+ "Submit": function() {
+ $("#flag-dialog form").submit();
+ $(this).dialog("close");
+ },
+ "Cancel": function() {
+ $(this).dialog("close");
+ }
+ }
+ });
+
+ $("a#flag").click(function(e) {
+ e.preventDefault();
+ $("#flag-dialog").dialog("open");
+ });
+ }
+})();
+
+$(document).ready(function() {
+ Danbooru.PostFlag.initialize_all();
+});
diff --git a/public/javascripts/src/app/unapprovals.js b/public/javascripts/src/app/unapprovals.js
deleted file mode 100644
index 99fa0fe36..000000000
--- a/public/javascripts/src/app/unapprovals.js
+++ /dev/null
@@ -1,40 +0,0 @@
-(function() {
- Danbooru.Unapproval = {};
-
- Danbooru.Unapproval.initialize_all = function() {
- this.initialize_unapprove();
- this.hide_or_show_unapprove_link();
- }
-
- Danbooru.Unapproval.hide_or_show_unapprove_link = function() {
- if (Danbooru.meta("post-is-unapprovable") != "true") {
- $("a#unapprove").hide();
- }
- }
-
- Danbooru.Unapproval.initialize_unapprove = function() {
- $("#unapprove-dialog").dialog({
- autoOpen: false,
- width: 400,
- modal: true,
- buttons: {
- "Submit": function() {
- $("#unapprove-dialog form").submit();
- $(this).dialog("close");
- },
- "Cancel": function() {
- $(this).dialog("close");
- }
- }
- });
-
- $("a#unapprove").click(function(e) {
- e.preventDefault();
- $("#unapprove-dialog").dialog("open");
- });
- }
-})();
-
-$(document).ready(function() {
- Danbooru.Unapproval.initialize_all();
-});
diff --git a/public/stylesheets/compiled/default.css b/public/stylesheets/compiled/default.css
index 86e92e16d..939890c15 100644
--- a/public/stylesheets/compiled/default.css
+++ b/public/stylesheets/compiled/default.css
@@ -1,20 +1,22 @@
.blacklisted {
display: none !important; }
-body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt {
+body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt, header, aside {
font-family: Verdana, Geneva, sans-serif;
- font-size: 100%;
+ line-height: 1.25em;
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline; }
+body {
+ font-size: 87.5%; }
+
h1, h2, h3, h4 {
font-family: Tahoma;
line-height: 1em; }
body {
- font-size: 80%;
padding: 1em 2em;
margin: 0; }
@@ -57,22 +59,22 @@ dt {
font-weight: bold; }
h1 {
- font-size: 2em; }
+ font-size: 2.1818em; }
h2 {
- font-size: 1.8em; }
+ font-size: 1.9091em; }
h3 {
- font-size: 1.6em; }
+ font-size: 1.6364em; }
h4 {
- font-size: 1.4em; }
+ font-size: 1.4545em; }
h5 {
- font-size: 1.2em; }
+ font-size: 1.2727em; }
h6 {
- font-size: 1em; }
+ font-size: 1.090em; }
header {
margin: 0 0 1em 0;
@@ -116,6 +118,9 @@ menu {
list-style-type: none;
display: inline; }
+p {
+ margin-bottom: 1em; }
+
section {
display: block; }
@@ -208,17 +213,22 @@ body > header > h1 {
font-size: 3em;
font-family: Tahoma, Helvetica, sans-serif; }
+/*** Dialog Boxes ***/
+div.ui-dialog ul {
+ margin-left: 1em;
+ margin-bottom: 1em; }
+
/*** Simple Form ***/
form.simple_form {
- margin: 1em 0; }
+ margin: 0 0 1em 0; }
form.simple_form div.input.boolean label {
display: inline; }
form.simple_form div.input {
margin-bottom: 1em; }
- form.simple_form div.input input[type=text], form.simple_form div.input input[type=file], form.simple_form div.input textarea {
- width: 300px; }
+ form.simple_form div.input input[type=text], form.simple_form div.input input[type=file] {
+ width: 20em; }
form.simple_form div.input textarea {
- height: 100px; }
+ width: 30em; }
form.simple_form div.input label {
display: block;
cursor: pointer;
@@ -238,27 +248,21 @@ form.simple_form {
margin-right: 2em; }
/*** DText Preview ***/
-div.dtext h1.preview-header {
- margin-bottom: 0.25em; }
-div.dtext p {
- margin-bottom: 1em; }
-div.dtext ul {
- margin-left: 1em; }
+div.dtext {
+ width: 30em; }
+ div.dtext ul {
+ margin-left: 1em; }
/*** Pools Posts ***/
div#c-pools-posts div#a-new form {
margin-bottom: 1em; }
-div#c-pools-posts div#a-new h1 {
- font-size: 1.2em;
- font-weight: bold; }
div#c-pools-posts div#a-new li {
margin-left: 1em;
cursor: pointer; }
/*** Pools ***/
div#c-pools div#a-edit p {
- margin-bottom: 1em;
- width: 40em; }
+ width: 30em; }
div#c-pools div#a-edit ul.ui-sortable {
list-style-type: none; }
div#c-pools div#a-edit ul.ui-sortable span {
@@ -283,11 +287,9 @@ div.comments-for-post div.list-of-comments article {
div.comments-for-post div.list-of-comments article div.author {
width: 20%;
float: left; }
- div.comments-for-post div.list-of-comments article div.author h1 {
- font-size: 1.5em; }
div.comments-for-post div.list-of-comments article div.content {
margin-left: 2em;
- width: 40em;
+ width: 30em;
float: left; }
div.comments-for-post div.comment-preview {
margin-bottom: 2em; }
@@ -296,7 +298,7 @@ div.dtext-preview {
border: 2px dashed #AAA;
padding: 1em;
margin: 1em;
- width: 40em; }
+ width: 30em; }
div#c-comments div#a-index div.header span.info {
margin-right: 1.5em; }
@@ -316,8 +318,6 @@ div#c-comments div#a-index div.post {
div#c-comments div#a-index div.post div.comments-for-post {
float: left;
width: 55em; }
- div#c-comments div#a-index div.post div.comments-for-post h1 {
- font-size: 1.2em; }
/*** Favorites ***/
div#c-favorites section#content > h1 {
@@ -329,10 +329,6 @@ article.post-preview {
margin-bottom: 4em;
float: left; }
-div#c-posts h1 {
- font-size: 1.2em; }
-div#c-posts h2 {
- font-size: 1.1em; }
div#c-posts aside#sidebar > section#pool-sidebar span.ui-icon {
float: left;
margin-right: 0.25em;
@@ -347,8 +343,6 @@ div#c-posts section#tag-and-wiki-box {
display: inline-block; }
div#c-posts section#tag-and-wiki-box menu li.active a {
color: #000; }
- div#c-posts section#tag-and-wiki-box h1 {
- font-size: 1.2em; }
div#c-posts section#tag-and-wiki-box div#tag-box h2 {
display: none; }
div#c-posts section#tag-and-wiki-box div#tag-box li {
@@ -412,26 +406,20 @@ div#c-artists span.new-artist {
color: #A00; }
div#c-artists div#a-show {
max-width: 60em; }
- div#c-artists div#a-show h1 {
- font-size: 1.5em;
- margin-bottom: 5px; }
div#c-artists div#a-show p.legend {
margin-bottom: 2em;
font-size: 0.8em;
font-style: italic; }
+div#c-artists div#a-edit textarea, div#c-artists div#a-new textarea {
+ height: 5em; }
/*** Users ***/
div.users div.new {
max-width: 60em; }
- div.users div.new h1 {
- margin-bottom: 0.5em; }
div.users div.new p {
margin-bottom: 1em; }
div.users div.new li {
margin-left: 1em; }
- div.users div.new div#account-comparison h1 {
- font-size: 1.4em;
- margin-bottom: 3px; }
div.users div.new div#account-comparison li {
font-size: 0.9em;
line-height: 1.5em; }
@@ -440,7 +428,7 @@ div.users div.new {
float: left;
padding: 1em; }
div.users div.new footer.nav-links {
- font-size: 1.5em;
+ font-size: 1.4545em;
font-weight: bold;
text-align: center;
display: block; }
@@ -459,11 +447,9 @@ div.list-of-forum-posts article {
div.list-of-forum-posts article div.author {
width: 20%;
float: left; }
- div.list-of-forum-posts article div.author h1 {
- font-size: 1.5em; }
div.list-of-forum-posts article div.content {
margin-left: 2em;
- width: 40em;
+ width: 30em;
float: left; }
div.list-of-forum-posts article div.content menu {
margin-top: 0.5em; }
@@ -471,12 +457,9 @@ div.list-of-forum-posts article {
div#c-forum-topics div.single-forum-post {
width: 60em; }
div#c-forum-topics div#a-show h1#forum-topic-title {
- font-size: 2em; }
+ font-size: 2.1818em; }
div#c-forum-topics span.info {
color: #AAA; }
-div#c-forum-topics textarea {
- width: 400px;
- height: 40em; }
div#c-forum-topics div#form-content {
float: left;
width: 450px;
@@ -494,18 +477,15 @@ div#c-wiki-pages span.version {
color: #AAA; }
div#c-wiki-pages div#form-content {
float: left;
- width: 450px;
+ width: 30em;
padding-right: 1em; }
div#c-wiki-pages div#form-aside {
float: left;
- width: 400px; }
+ width: 20em; }
div#c-wiki-pages div#form-aside div#preview > p {
margin-top: 0.5em;
padding-top: 0.5em;
border-top: 1px solid #AAA; }
-div#c-wiki-pages div#a-edit textarea, div#c-wiki-pages div#a-new textarea {
- width: 400px;
- height: 40em; }
/*** Post Moderation ***/
div#c-post-moderation article {
diff --git a/public/stylesheets/src/default.scss b/public/stylesheets/src/default.scss
index 03fb7e580..3a1dd36a0 100644
--- a/public/stylesheets/src/default.scss
+++ b/public/stylesheets/src/default.scss
@@ -5,22 +5,25 @@ $link_hover_color: #9093FF;
display: none !important;
}
-body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt {
+body, div, h1, h2, h3, h4, h5, h6, p, ul, li, dd, dt, header, aside {
font-family: Verdana, Geneva, sans-serif;
- font-size: 100%;
+ line-height: 1.25em;
margin: 0;
padding: 0;
border: 0;
vertical-align: baseline;
}
+body {
+ font-size: 87.5%;
+}
+
h1, h2, h3, h4 {
font-family: Tahoma;
line-height: 1em;
}
body {
- font-size: 80%;
padding: 1em 2em;
margin: 0;
}
@@ -74,27 +77,27 @@ dt {
}
h1 {
- font-size: 2em;
+ font-size: 2.1818em;
}
h2 {
- font-size: 1.8em;
+ font-size: 1.9091em;
}
h3 {
- font-size: 1.6em;
+ font-size: 1.6364em;
}
h4 {
- font-size: 1.4em;
+ font-size: 1.4545em;
}
h5 {
- font-size: 1.2em;
+ font-size: 1.2727em;
}
h6 {
- font-size: 1em;
+ font-size: 1.090em;
}
header {
@@ -150,6 +153,10 @@ menu {
}
}
+p {
+ margin-bottom: 1em;
+}
+
section {
display: block;
}
@@ -292,9 +299,18 @@ body > header > h1 {
}
+/*** Dialog Boxes ***/
+div.ui-dialog {
+ ul {
+ margin-left: 1em;
+ margin-bottom: 1em;
+ }
+}
+
+
/*** Simple Form ***/
form.simple_form {
- margin: 1em 0;
+ margin: 0 0 1em 0;
div.input.boolean {
label {
@@ -305,12 +321,12 @@ form.simple_form {
div.input {
margin-bottom: 1em;
- input[type=text], input[type=file], textarea {
- width: 300px;
+ input[type=text], input[type=file] {
+ width: 20em;
}
textarea {
- height: 100px;
+ width: 30em;
}
label {
@@ -344,14 +360,8 @@ form.simple_form {
/*** DText Preview ***/
div.dtext {
- h1.preview-header {
- margin-bottom: 0.25em;
- }
+ width: 30em;
- p {
- margin-bottom: 1em;
- }
-
ul {
margin-left: 1em;
}
@@ -366,11 +376,6 @@ div#c-pools-posts {
margin-bottom: 1em;
}
- h1 {
- font-size: 1.2em;
- font-weight: bold;
- }
-
li {
margin-left: 1em;
cursor: pointer;
@@ -385,8 +390,7 @@ div#c-pools-posts {
div#c-pools {
div#a-edit {
p {
- margin-bottom: 1em;
- width: 40em;
+ width: 30em;
}
ul.ui-sortable {
@@ -429,15 +433,11 @@ div.comments-for-post {
div.author {
width: 20%;
float: left;
-
- h1 {
- font-size: 1.5em;
- }
}
div.content {
margin-left: 2em;
- width: 40em;
+ width: 30em;
float: left;
}
}
@@ -452,7 +452,7 @@ div.dtext-preview {
border: 2px dashed #AAA;
padding: 1em;
margin: 1em;
- width: 40em;
+ width: 30em;
}
div#c-comments {
@@ -492,10 +492,6 @@ div#c-comments {
div.comments-for-post {
float: left;
width: 55em;
-
- h1 {
- font-size: 1.2em;
- }
}
}
}
@@ -519,14 +515,6 @@ article.post-preview {
}
div#c-posts {
- h1 {
- font-size: 1.2em;
- }
-
- h2 {
- font-size: 1.1em;
- }
-
aside#sidebar > section#pool-sidebar {
span.ui-icon {
float: left;
@@ -556,10 +544,6 @@ div#c-posts {
}
}
- h1 {
- font-size: 1.2em;
- }
-
div#tag-box {
h2 {
display: none;
@@ -689,17 +673,18 @@ div#c-artists {
div#a-show {
max-width: 60em;
- h1 {
- font-size: 1.5em;
- margin-bottom: 5px;
- }
-
p.legend {
margin-bottom: 2em;
font-size: 0.8em;
font-style: italic;
}
- }
+ }
+
+ div#a-edit, div#a-new {
+ textarea {
+ height: 5em;
+ }
+ }
}
@@ -708,10 +693,6 @@ div.users {
div.new {
max-width: 60em;
- h1 {
- margin-bottom: 0.5em;
- }
-
p {
margin-bottom: 1em;
}
@@ -721,11 +702,6 @@ div.users {
}
div#account-comparison {
- h1 {
- font-size: 1.4em;
- margin-bottom: 3px;
- }
-
li {
font-size: 0.9em;
line-height: 1.5em;
@@ -739,7 +715,7 @@ div.users {
}
footer.nav-links {
- font-size: 1.5em;
+ font-size: 1.4545em;
font-weight: bold;
text-align: center;
display: block;
@@ -776,15 +752,11 @@ div.list-of-forum-posts {
div.author {
width: 20%;
float: left;
-
- h1 {
- font-size: 1.5em;
- }
}
div.content {
margin-left: 2em;
- width: 40em;
+ width: 30em;
float: left;
menu {
@@ -801,7 +773,7 @@ div#c-forum-topics {
div#a-show {
h1#forum-topic-title {
- font-size: 2em;
+ font-size: 2.1818em;
}
}
@@ -809,11 +781,6 @@ div#c-forum-topics {
color: #AAA;
}
- textarea {
- width: 400px;
- height: 40em;
- }
-
div#form-content {
float: left;
width: 450px;
@@ -842,13 +809,13 @@ div#c-wiki-pages {
div#form-content {
float: left;
- width: 450px;
+ width: 30em;
padding-right: 1em;
}
div#form-aside {
float: left;
- width: 400px;
+ width: 20em;
div#preview > p {
margin-top: 0.5em;
@@ -856,13 +823,8 @@ div#c-wiki-pages {
border-top: 1px solid #AAA;
}
}
-
+
div#a-edit, div#a-new {
- textarea {
- width: 400px;
- height: 40em;
- }
-
div#preview {
}
}
diff --git a/script/custom/compile_javascripts b/script/custom/compile_javascripts
index 24b90a0c3..9497ffaef 100755
--- a/script/custom/compile_javascripts
+++ b/script/custom/compile_javascripts
@@ -14,7 +14,8 @@ cat public/javascripts/src/app/comments.js >> public/javascripts/compiled/defaul
cat public/javascripts/src/app/uploads.js >> public/javascripts/compiled/default.js
cat public/javascripts/src/app/users.js >> public/javascripts/compiled/default.js
cat public/javascripts/src/app/favorites.js >> public/javascripts/compiled/default.js
-cat public/javascripts/src/app/unapprovals.js >> public/javascripts/compiled/default.js
+cat public/javascripts/src/app/post_flags.js >> public/javascripts/compiled/default.js
+cat public/javascripts/src/app/post_appeals.js >> public/javascripts/compiled/default.js
cat public/javascripts/src/app/post_moderation.js >> public/javascripts/compiled/default.js
cat public/javascripts/src/app/pools.js >> public/javascripts/compiled/default.js
cat public/javascripts/src/app/wiki_pages.js >> public/javascripts/compiled/default.js
diff --git a/test/fixtures/post_appeals.yml b/test/fixtures/post_appeals.yml
new file mode 100644
index 000000000..289334110
--- /dev/null
+++ b/test/fixtures/post_appeals.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/fixtures/post_flags.yml b/test/fixtures/post_flags.yml
new file mode 100644
index 000000000..289334110
--- /dev/null
+++ b/test/fixtures/post_flags.yml
@@ -0,0 +1,11 @@
+# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
diff --git a/test/unit/post_appeal_test.rb b/test/unit/post_appeal_test.rb
new file mode 100644
index 000000000..8a02182f3
--- /dev/null
+++ b/test/unit/post_appeal_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class PostAppealTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end
diff --git a/test/unit/post_flag_test.rb b/test/unit/post_flag_test.rb
new file mode 100644
index 000000000..0b536a6fe
--- /dev/null
+++ b/test/unit/post_flag_test.rb
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class PostFlagTest < ActiveSupport::TestCase
+ # Replace this with your real tests.
+ test "the truth" do
+ assert true
+ end
+end