-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add queueimage show and progress bar
- Loading branch information
1 parent
04ba71b
commit 19b6cd0
Showing
14 changed files
with
125 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
class Like < ActiveRecord::Base | ||
belongs_to :queue_image | ||
belongs_to :client | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,68 @@ | ||
<p id="notice"><%= notice %></p> | ||
|
||
<p> | ||
<strong>User:</strong> | ||
<%= @queue_image.user_id %> | ||
</p> | ||
|
||
<p> | ||
<strong>Content image:</strong> | ||
<%= @queue_image.content_image %> | ||
</p> | ||
|
||
<p> | ||
<strong>Style image:</strong> | ||
<%= @queue_image.style_image %> | ||
</p> | ||
|
||
<p> | ||
<strong>Init str:</strong> | ||
<%= @queue_image.init_str %> | ||
</p> | ||
|
||
<p> | ||
<strong>Status:</strong> | ||
<%= @queue_image.status %> | ||
</p> | ||
|
||
<p> | ||
<strong>Result:</strong> | ||
<%= @queue_image.result %> | ||
</p> | ||
|
||
<%= link_to 'Edit', edit_queue_image_path(@queue_image) %> | | ||
<%item = @queue_image %> | ||
<%res_img = item.result_image %> | ||
|
||
<%= link_to 'Back', queue_images_path %> | ||
<div class="container"> | ||
<div class="row styleRow2-lg"> | ||
|
||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-3 userAvatarStyle-lg" > | ||
<%= link_to(image_tag(item.content.image.thumb200.url, alt:item.content.image, class: "imagesStyle"), item.content.image.url, class: "imagesStyle") %> | ||
</div> | ||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-3 userAvatarStyle-lg"> | ||
<%= link_to(image_tag(item.style.image.thumb200.url, alt:item.style.image, class: "imagesStyle"), item.style.image.url, class: "imagesStyle") %> | ||
</div> | ||
|
||
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-3 userAvatarStyle-lg"> | ||
<div class="" > | ||
<%= link_to(image_tag(res_img.imageurl.thumb400.url, alt:res_img.imageurl, class: "imagesStyle"), res_img.imageurl.url, class: "imagesStyle") if res_img %> | ||
</div> | ||
</div> | ||
|
||
<div class=" col-lg-2 col-md-2 col-sm-3 col-xs-3 "> | ||
<span class="textAboutStyle"><%= item.client.email if !item.client.nil? %></span> | ||
<span class="textAboutStyle"><%= (item.created_at+10800).strftime("%d.%m.%Y %H:%M:%S")%></span><br> | ||
<span class="textAboutStyle"><%= "like: #{Like.where(queue_id: item.id).count} #{item.likes_count}" %></span> | ||
|
||
<div id="qi_status_<%= item.id %>"> | ||
<span class="textAboutStyle"><%= get_queue_item_status(item) %></span> | ||
</div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | ||
<%= item.init_str if !item.init_str.blank? %> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> | ||
<%= render partial: 'admin_pages/statuses', :locals => {item: item} %> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<br>Likes:<br> | ||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 userAvatarStyle-lg "> | ||
|
||
<% item.likes.each do |il| %> | ||
<%= il.client.email %><br> | ||
|
||
<% end %> | ||
</div> | ||
</div> | ||
|
||
<div class="row"> | ||
<% item.pimages.each do |pi| %> | ||
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-4 userAvatarStyle-lg "> | ||
<%= link_to(image_tag(pi.imageurl.url, alt:pi.imageurl, class: "imagesStyle"), pi.imageurl.url, class: "imagesStyle")%> | ||
</div> | ||
<% end %> | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddProgressToQueueImages < ActiveRecord::Migration | ||
def change | ||
add_column :queue_images, :progress, :float, default: 0 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters