Link to packages and screenshots (highlighted) from logs view
This commit is contained in:
parent
9a16bad007
commit
330536cb7e
4 changed files with 17 additions and 4 deletions
|
|
@ -29,12 +29,12 @@
|
|||
td #{log.section}
|
||||
td
|
||||
- if log.package
|
||||
= log.package.name
|
||||
= link_to log.package.name, log.package
|
||||
- else
|
||||
' -
|
||||
td
|
||||
- if log.screenshot
|
||||
= log.screenshot.id
|
||||
= link_to log.screenshot.id, package_path(log.package, highlight: log.screenshot.id)
|
||||
- else
|
||||
' -
|
||||
td
|
||||
|
|
|
|||
|
|
@ -15,7 +15,10 @@
|
|||
= render(partial: 'packages/paginator', locals: {items: @screenshots})
|
||||
.grid-x.grid-margin-x.medium-up-1.large-up-2 data-equalizer=true data-equalize-on="medium"
|
||||
- @screenshots.each do |screenshot|
|
||||
div class=("cell pkgcard" + (screenshot.approved ? " approved" : " unapproved")) data-equalizer-watch=true
|
||||
- @divclasses = %W(cell pkgcard)
|
||||
- @divclasses << (screenshot.approved ? "approved" : "unapproved")
|
||||
- @divclasses << 'highlight' if screenshot.id == @highlight_id
|
||||
div class=(@divclasses.join(' ')) data-equalizer-watch=true
|
||||
a.black href =url_for(screenshot.simage_url(:large)) rel='fancybox-thumb' title=screenshot.caption data-fancybox='gallery' data-caption=screenshot_caption(screenshot)
|
||||
.image.image-with-zoom-icon
|
||||
= small_img(screenshot, cls: '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue