rename references of privileged to gold

This commit is contained in:
r888888888
2013-04-28 00:04:52 -07:00
parent 6a00c6330f
commit d5f575159f
112 changed files with 165 additions and 165 deletions

View File

@@ -3,4 +3,4 @@
<%= f.input :referral_url, :as => :string %>
<%= f.input :status, :collection => %w(active inactive) %>
<%= f.button :submit, "Submit" %>
<% end %>
<% end %>

View File

@@ -67,4 +67,4 @@
</script>
<!-- End J-List Product Feed -->
</div>
</div>

View File

@@ -67,4 +67,4 @@
</script>
<!-- End J-List Product Feed -->
</div>
</div>

View File

@@ -60,4 +60,4 @@
</script>
<!-- End J-List Product Feed -->
</div>
</div>

View File

@@ -60,4 +60,4 @@
</script>
<!-- End J-List Product Feed -->
</div>
</div>

View File

@@ -15,4 +15,4 @@
<%= dtext_field "artist", "notes" %>
<%= f.button :submit, "Submit" %>
<%= dtext_preview_button "artist", "notes" %>
<% end %>
<% end %>

View File

@@ -25,4 +25,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -1 +1 @@
$("div.comments-for-post[data-post-id=<%= @comment.post_id %>] div.list-of-comments").append("<%= escape_javascript(render('comments/partials/show/comment', :comment => @comment)) %>");
$("div.comments-for-post[data-post-id=<%= @comment.post_id %>] div.list-of-comments").append("<%= escape_javascript(render('comments/partials/show/comment', :comment => @comment)) %>");

View File

@@ -16,7 +16,7 @@
<strong>Score</strong>
<span>
<span id="score-for-post-<%= post.id %>"><%= post.score %></span>
<% if CurrentUser.is_privileged? %>
<% if CurrentUser.is_gold? %>
(vote <%= link_to("up", post_votes_path(:score => "up", :post_id => post.id), :remote => true, :method => :post) %>/<%= link_to("down", post_votes_path(:score => "down", :post_id => post.id), :remote => true, :method => :post) %>)
<% end %>
</span>

View File

@@ -13,4 +13,4 @@
<div id="<%= preview_id %>" class="dtext-preview prose"></div>
</div>
<span class="hint">All text is formatted using <%= link_to "DText", wiki_pages_path(:title => "help:dtext") %></span>
</div>
</div>

View File

@@ -1 +1 @@
<%= post.favorited_users.reverse_each.map{|user| link_to_user(user)}.join(", ").html_safe %>
<%= post.favorited_users.reverse_each.map{|user| link_to_user(user)}.join(", ").html_safe %>

View File

@@ -3,7 +3,7 @@
<aside id="sidebar">
<%= render "posts/partials/common/search", :path => favorites_path, :tags => @favorite_set.tag_string %>
<% if CurrentUser.is_privileged? %>
<% if CurrentUser.is_gold? %>
<section id="mode-box">
<%= render "posts/partials/index/mode_menu" %>
</section>

View File

@@ -43,4 +43,4 @@
</div>
<div class="clearfix"></div>
</article>
<% end %>
<% end %>

View File

@@ -7,4 +7,4 @@ $("#topic-response").show();
$('html, body').animate({
scrollTop: $("#forum_post_body").offset().top - 100
}, 500);
$("#forum_post_body").selectEnd();
$("#forum_post_body").selectEnd();

View File

@@ -47,4 +47,4 @@
})
});
</script>
<% end %>
<% end %>

View File

@@ -1 +1 @@
location.reload();
location.reload();

View File

@@ -20,4 +20,4 @@
<%= nav_link_to("Dashboard", moderator_dashboard_path) %>
<% end %>
<%= nav_link_to("More &raquo;".html_safe, site_map_path, :id => "site-map-link") %>
</menu>
</menu>

View File

@@ -2,4 +2,4 @@
<ul>
<%= nav_link_to("More &raquo;".html_safe, site_map_path) %>
</ul>
</div>
</div>

View File

@@ -40,7 +40,7 @@
<%= render "users/sign_up_notice" %>
<% end %>
<% if !CurrentUser.is_anonymous? && !CurrentUser.is_privileged? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %>
<% if !CurrentUser.is_anonymous? && !CurrentUser.is_gold? && cookies[:hide_upgrade_account_notice].blank? && params[:action] != "upgrade_information" %>
<%= render "users/upgrade_notice" %>
<% end %>
@@ -52,7 +52,7 @@
<%= render "users/dmail_notice" %>
<% end %>
<% if cookies["accepted_tos"].blank? && !CurrentUser.is_privileged? %>
<% if cookies["accepted_tos"].blank? && !CurrentUser.is_gold? %>
<%= render "users/tos" %>
<% end %>

View File

@@ -1 +1 @@
<p>Your username is <%= @user.name %>.</p>
<p>Your username is <%= @user.name %>.</p>

View File

@@ -14,4 +14,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -18,4 +18,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -16,4 +16,4 @@
</tbody>
</table>
<p><%= link_to "View all actions", mod_actions_path %></p>
<p><%= link_to "View all actions", mod_actions_path %></p>

View File

@@ -14,4 +14,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -14,4 +14,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -16,4 +16,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -14,4 +14,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -10,4 +10,4 @@
</div>
<%= submit_tag "Search" %>
<% end %>
<% end %>

View File

@@ -13,4 +13,4 @@ $("#pending-approval-notice").hide();
$("#c-moderator-post-queues #post-<%= @post.id %>").hide();
Danbooru.notice("Post was approved");
<% end %>
<% end %>

View File

@@ -1 +1 @@
{"success": <%= @post.errors.empty? %>, "reason": <%= raw @post.errors.full_messages.join("; ").to_json %>}
{"success": <%= @post.errors.empty? %>, "reason": <%= raw @post.errors.full_messages.join("; ").to_json %>}

View File

@@ -12,4 +12,4 @@ $("#pending-approval-notice").hide();
$("#c-moderator-post-queues #post-<%= @post.id %>").hide();
Danbooru.notice("Post was hidden");
<% end %>
<% end %>

View File

@@ -9,4 +9,4 @@
<%= submit_tag "Ban" %>
<%= submit_tag "Cancel" %>
<% end %>
<% end %>

View File

@@ -12,4 +12,4 @@
<%= submit_tag "Delete" %>
<%= submit_tag "Cancel" %>
<% end %>
<% end %>

View File

@@ -1 +1 @@
Danbooru.notice("Post was permanently deleted");
Danbooru.notice("Post was permanently deleted");

View File

@@ -1,3 +1,3 @@
$("#c-posts #delete").show();
$("#c-posts #undelete").hide();
Danbooru.notice("Post was undeleted");
Danbooru.notice("Post was undeleted");

View File

@@ -1 +1 @@
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>"><%= raw DText.sanitize(note.body) %></article>
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>"><%= raw DText.sanitize(note.body) %></article>

View File

@@ -1 +1 @@
<%= render "pool_elements/new" %>
<%= render "pool_elements/new" %>

View File

@@ -42,4 +42,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -1 +1 @@
<%= render "post_appeals/new" %>
<%= render "post_appeals/new" %>

View File

@@ -1 +1 @@
<%= render "post_flags/new" %>
<%= render "post_flags/new" %>

View File

@@ -1,3 +1,3 @@
<p>Nobody here but us chickens!</p>
<p class="paginator"><%= link_to "Go back", :back, :rel => "prev" %></p>
<p class="paginator"><%= link_to "Go back", :back, :rel => "prev" %></p>

View File

@@ -6,4 +6,4 @@
<%= submit_tag "Submit" %>
<%= submit_tag "Cancel" %>
<% end %>
</div>
</div>

View File

@@ -1,4 +1,4 @@
<% if CurrentUser.is_privileged? %>
<% if CurrentUser.is_gold? %>
<section id="mode-box">
<h1>Mode</h1>
<form action="/">

View File

@@ -13,9 +13,9 @@
</li>
<li>Source: <%= post_source_tag(post) %></li>
<li>Rating: <%= post.pretty_rating %></li>
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> <% if CurrentUser.is_privileged? %>(vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %>)<% end %></li>
<li>Score: <span id="score-for-post-<%= post.id %>"><%= post.score %></span> <% if CurrentUser.is_gold? %>(vote <%= link_to "up", post_votes_path(:post_id => post.id, :score => "up"), :remote => true, :method => :post %>/<%= link_to "down", post_votes_path(:post_id => post.id, :score => "down"), :remote => true, :method => :post %>)<% end %></li>
<li>Favorites: <span id="favcount-for-post-<%= post.id %>"><%= post.fav_count %></span>
<% if CurrentUser.is_privileged? && post.fav_count > 0 %>
<% if CurrentUser.is_gold? && post.fav_count > 0 %>
<%= link_to "&raquo;".html_safe, favorites_path(:post_id => post.id), :remote => true, :id => "show-favlist-link" %>
<%= link_to "&laquo;".html_safe, "#", :id => "hide-favlist-link" %>
<div id="favlist"></div>
@@ -42,4 +42,4 @@
Active
<% end %>
</li>
</ul>
</ul>

View File

@@ -46,4 +46,4 @@
<% end %>
<% end %>
<% end %>
</ul>
</ul>

View File

@@ -1 +1 @@
location.reload();
location.reload();

View File

@@ -32,4 +32,4 @@
</table>
</div>
</body>
</html>
</html>

View File

@@ -30,4 +30,4 @@
Sign in - <%= Danbooru.config.app_name %>
<% end %>
<%= render "secondary_links" %>
<%= render "secondary_links" %>

View File

@@ -2,4 +2,4 @@
<p><%= @error_message %></p>
<% else %>
<p>Error: <%= @exception.to_s %></p>
<% end %>
<% end %>

View File

@@ -3,4 +3,4 @@
<result success="false"><%= @error_message %></result>
<% else %>
<result success="false"><%= @exception.to_s %></result>
<% end %>
<% end %>

View File

@@ -21,4 +21,4 @@
<%= submit_tag "Cancel" %>
<% end %>
<%= render "tag_aliases/secondary_links" %>
<%= render "tag_aliases/secondary_links" %>

View File

@@ -1 +1 @@
$("#tag-alias-status-for-<%= @tag_alias.id %>").html("queued");
$("#tag-alias-status-for-<%= @tag_alias.id %>").html("queued");

View File

@@ -1 +1 @@
$("#tag-implication-status-for-<%= @tag_implication.id %>").html("queued");
$("#tag-implication-status-for-<%= @tag_implication.id %>").html("queued");

View File

@@ -43,4 +43,4 @@
</tr>
<% end %>
</tbody>
</table>
</table>

View File

@@ -1,6 +1,6 @@
<% content_for(:secondary_links) do %>
<menu>
<% if CurrentUser.is_privileged? %>
<% if CurrentUser.is_gold? %>
<% if @user_feedback %>
<li><%= link_to "New", new_user_feedback_path(:user_feedback => {:user_id => @user_feedback.user_id}) %></li>
<% elsif params[:search] && params[:search][:user_id] %>

View File

@@ -9,4 +9,4 @@
<p><%= link_to "View message", dmail_path(@dmail, :host => Danbooru.config.hostname, :only_path => false) %></p>
</body>
</html>
</html>

View File

@@ -3,4 +3,4 @@
<body>
<p>You can upgrade your account by sending $20 USD via Paypal to <%= mail_to Danbooru.config.upgrade_account_email %>. Be sure to include your username.</p>
</body>
</html>
</html>

View File

@@ -3,4 +3,4 @@
<body>
<p>Account upgrades are currently disabled.</p>
</body>
</html>
</html>

View File

@@ -21,4 +21,4 @@
</table>
<%= numbered_paginator(@change_requests) %>
</div>
</div>

View File

@@ -18,4 +18,4 @@
<div class="input">
<%= submit_tag "Submit" %>
</div>
<% end %>
<% end %>

View File

@@ -12,7 +12,7 @@
<li>|</li>
<% if @user.id == CurrentUser.id %>
<li><%= link_to "Settings", edit_user_path(CurrentUser.user) %></li>
<% if @user.is_privileged? %>
<% if @user.is_gold? %>
<li><%= link_to "Edit subscriptions", tag_subscriptions_path %></li>
<% end %>
<li><%= link_to "Profile", user_path(CurrentUser.user) %></li>
@@ -21,7 +21,7 @@
<li><%= link_to "Send message", new_dmail_path(:dmail => {:to_id => @user.id}) %></li>
<% end %>
<% if !CurrentUser.is_privileged? %>
<% if !CurrentUser.is_gold? %>
<li><%= link_to "Upgrade", upgrade_information_users_path %></li>
<% end %>

View File

@@ -124,4 +124,4 @@
</tr>
<% end %>
</table>
</div>
</div>

View File

@@ -9,7 +9,7 @@
<div class="input">
<label>Name</label>
<% if CurrentUser.user.is_privileged? %>
<% if CurrentUser.user.is_gold? %>
<p><%= link_to "Request a name change", new_user_name_change_request_path %></p>
<% else %>
<p>You must <%= link_to "upgrade your account", upgrade_information_users_path %> to request a name change</p>
@@ -21,7 +21,7 @@
<%= f.input :comment_threshold, :hint => "Comments below this score will be hidden by default" %>
<%= f.input :default_image_size, :hint => "Show original image or show resampled #{Danbooru.config.large_image_width} pixel version", :label => "Default image width", :collection => [["850px", "large"], ["original", "original"]], :include_blank => false %>
<% if CurrentUser.user.is_privileged? %>
<% if CurrentUser.user.is_gold? %>
<%= f.input :per_page, :label => "Posts per page", :as => :select, :collection => (1..100), :include_blank => false %>
<% end %>

View File

@@ -10,4 +10,4 @@
</div>
</div>
<%= render "wiki_pages/secondary_links" %>
<%= render "wiki_pages/secondary_links" %>