85 lines
3.5 KiB
Text
85 lines
3.5 KiB
Text
.row.packagepage
|
|
.small-12.columns
|
|
h1 = "Upload a new screenshot for #{@package.name}>"
|
|
p.subtitle = @package.description
|
|
|
|
.row.packagepage
|
|
.small-12.medium-7.large-8.columns
|
|
// First row contains the upload form
|
|
.row
|
|
.small-6.columns
|
|
//input id="fileupload" type="file" name="files[]" data-url=upload_image_path(name: @package.name) multiple=true
|
|
|
|
//= form_for @new_screenshot, :url => upload_image_path, :html => { :multipart => true } do |form|
|
|
// = form.file_field :image
|
|
// = form.submit 'Save'
|
|
= form_tag(upload_image_path, multipart: true)
|
|
= file_field_tag('image')
|
|
= submit_tag
|
|
|
|
//a.button.radius.expand href=upload_package_by_name_path(name: @package.name)
|
|
//' Click or drag a PNG screenshot file here
|
|
.small-6.columns
|
|
' Form
|
|
- @package.screenshots.each do |screenshot|
|
|
.row
|
|
img src=screenshot.image.url(:large, timestamp: false, alt: screenshot.caption)
|
|
= link_to "Delete screenshot", delete_screenshot_path(@package.name, screenshot.id), onclick: "return confirm('Really delete the screenshot?');"
|
|
|
|
// - @package.screenshots.each do |screenshot|
|
|
// .listview
|
|
// a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption
|
|
// = image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
|
|
// .imgcaption
|
|
// => screenshot.caption
|
|
// - if screenshot.uploader
|
|
// | (Uploaded by
|
|
// =< screenshot.uploader
|
|
// | )
|
|
|
|
.small-12.medium-5.large-4.columns
|
|
.bigpanel
|
|
p Thanks for uploading more screenshots. Please note:
|
|
ul
|
|
li
|
|
' Screenshots are made public and can freely be used by anyone.
|
|
li
|
|
' Your screenshots must be in PNG format.
|
|
li
|
|
' Images larger than 800x600 pixels will automatically be reduced.
|
|
' So don't try to put too much detail on a screenshot.
|
|
li
|
|
' Your screenshot should contain a typical scene when working with it.
|
|
li
|
|
' Nice tools for taking screenshots are shutter, ksnapshot (KDE),
|
|
' gimp, xwd or scrot. See the
|
|
a href='http://wiki.debian.org/ScreenShots' Debian wiki
|
|
' for more information on how to make screenshots under Debian.
|
|
li
|
|
' Please set your language to english so that everybody understands it.
|
|
' If you don't use english by default please start your application
|
|
' from a shell using after setting "export LANG=C".
|
|
li
|
|
' Please only take a screenshot of the respective application and not of
|
|
' your whole desktop (unless the screenshot is meant for a window manager).
|
|
li
|
|
' If you are not logged in or lack the reputation then your screenshot
|
|
' may need to be approved by the moderators first.
|
|
|
|
//ul.small-block-grid-1.medium-block-grid-2.large-block-grid-2
|
|
// - for screenshot in @package.screenshots
|
|
// li
|
|
// a.black.fancybox href=screenshot.url('large') rel='fancybox-thumb' title=screenshot.caption
|
|
// img src=screenshot.url('large')
|
|
// .imgcaption =screenshot.caption
|
|
//
|
|
|
|
//javascript:
|
|
// $('#fileupload').fileupload({
|
|
// dataType: 'json',
|
|
// done: function (e, data) {
|
|
// $.each(data.result.files, function (index, file) {
|
|
// $('<p/>').text(file.name).appendTo(document.body);
|
|
// });
|
|
// }
|
|
// });
|