renamed some flavor text
This commit is contained in:
@@ -2,10 +2,18 @@
|
||||
Danbooru.Upload = {};
|
||||
|
||||
Danbooru.Upload.initialize_all = function() {
|
||||
this.initialize_tinami_urls();
|
||||
this.initialize_image();
|
||||
this.initialize_info();
|
||||
}
|
||||
|
||||
Danbooru.Upload.initialize_tinami_urls = function() {
|
||||
// var source = $("#upload_source").val();
|
||||
// if (source.match(/http:\/\/www\.tinami\.com\/view\/(\d+)/)) {
|
||||
// console.log("source=%s", source);
|
||||
// }
|
||||
}
|
||||
|
||||
Danbooru.Upload.initialize_info = function() {
|
||||
$("#c-uploads #source-info ul").hide();
|
||||
$("#c-uploads #fetch-data").click(function(e) {
|
||||
@@ -13,15 +21,13 @@
|
||||
$.get(e.target.href).success(function(data) {
|
||||
var tag_html = "";
|
||||
$.each(data.tags, function(i, v) {
|
||||
var name = v[0];
|
||||
var url = v[1];
|
||||
tag_html += ('<a href="' + url + '">' + name + '</a> ');
|
||||
tag_html += ('<a href="' + v[1] + '">' + v[0] + '</a> ');
|
||||
});
|
||||
|
||||
$("#source-artist").html('<a href="' + data.profile_url + '">' + data.artist_name + '</a>');
|
||||
$("#source-tags").html(tag_html);
|
||||
|
||||
var new_artist_link = '<a href="/artists/new?name=' + data.unique_id + '&other_names=' + data.artist_name + '&urls=' + encodeURIComponent(data.profile_url) + '+' + encodeURIComponent($("#image").attr("src")) + '">new</a>';
|
||||
var new_artist_link = '<a href="/artists/new?name=' + data.unique_id + '&other_names=' + data.artist_name + '&urls=' + encodeURIComponent(data.profile_url) + '+' + encodeURIComponent(data.image_url) + '">new</a>';
|
||||
|
||||
if (data.danbooru_id) {
|
||||
$("#source-record").html('<a href="/artists/' + data.danbooru_id + '">' + data.danbooru_name + '</a> ' + new_artist_link);
|
||||
|
||||
@@ -22,6 +22,7 @@ module Sources
|
||||
return {
|
||||
:artist_name => artist_name,
|
||||
:profile_url => profile_url,
|
||||
:image_url => image_url,
|
||||
:tags => tags,
|
||||
:danbooru_name => artist_record.first.try(:name),
|
||||
:danbooru_id => artist_record.first.try(:id),
|
||||
|
||||
@@ -21,6 +21,8 @@ module Sources
|
||||
end
|
||||
|
||||
def normalized_url
|
||||
# http://localhost:3000/uploads/new?url=http%3A%2F%2Fwww.tinami.com%2Fview%2F308872
|
||||
# http://img.tinami.com/illust2/img/259/4e82154d61e74.jpg
|
||||
url
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<menu class="main">
|
||||
<% if CurrentUser.user.is_anonymous? %>
|
||||
<%= nav_link_to("Login", new_session_path, :class => "login") %>
|
||||
<%= nav_link_to("Sign in", new_session_path, :class => "login") %>
|
||||
<% else %>
|
||||
<%= nav_link_to("My Account", user_path(CurrentUser.user)) %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<% content_for(:secondary_links) do %>
|
||||
<menu>
|
||||
<li><%= link_to "Signup", new_user_path %></li>
|
||||
<li><%= link_to "Sign up", new_user_path %></li>
|
||||
<li><%= link_to "Reset Password", new_maintenance_user_password_reset_path %></li>
|
||||
<li><%= link_to "Login Reminder", new_maintenance_user_login_reminder_path %></li>
|
||||
</menu>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div id="c-sessions">
|
||||
<div id="a-new">
|
||||
<section>
|
||||
<h1>Login</h1>
|
||||
<h1>Sign in</h1>
|
||||
<%= form_tag(session_path, :class => "simple_form") do %>
|
||||
<%= hidden_field_tag "url", params[:url] %>
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<% end %>
|
||||
<% unless CurrentUser.user.is_anonymous? %>
|
||||
<li>|</li>
|
||||
<li><%= link_to "Logout", session_path, :method => :delete %></li>
|
||||
<li><%= link_to "Sign out", session_path, :method => :delete %></li>
|
||||
<% end %>
|
||||
</menu>
|
||||
<% end %>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div id="c-users">
|
||||
<div id="a-new">
|
||||
<h1>Signup</h1>
|
||||
<h1>Sign up</h1>
|
||||
|
||||
<% if @user.errors.empty? %>
|
||||
<div id="p1">
|
||||
@@ -72,8 +72,6 @@
|
||||
<%= f.button :submit %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= render "secondary_links" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user