Slightly improved the image status. Cruft removed.

This commit is contained in:
Christoph Haas 2015-04-25 20:05:38 +02:00
parent 6644d69e26
commit 4a5a50dd9a
3 changed files with 12 additions and 23 deletions

View file

@ -224,11 +224,20 @@ a.black
color: #808080; color: #808080;
} }
/* Description of a screenshot (e.g. the situation when the screenshot was taken) */
.imgcaption .imgcaption
{ {
text-align: center; text-align: center;
} }
/* Status of a screenshot (e.g. if it has to be moderated) */
.imgstatus
{
text-align: center;
font-style: italic;
color: #808080;
}
.bigpanel .bigpanel
{ {
background-color: white; background-color: white;

View file

@ -39,8 +39,8 @@ class Screenshot < ActiveRecord::Base
def status def status
text = '' text = 'This image '
# Completes the sentence: 'This image...'
if self.approved if self.approved
text << 'is public' text << 'is public'
else else

View file

@ -1,10 +1,3 @@
// Package list
//.small-4.columns
//.rating
// TODO: use actual rating
//.progress.radius
//span.meter style="width: #{rand(100)}%" Rating
.row.packagepage .row.packagepage
.small-12.columns .small-12.columns
h1 =@package.name h1 =@package.name
@ -18,6 +11,7 @@
a.black.fancybox href=screenshot.image.url(:large, timestamp: false) rel='fancybox-thumb' title=screenshot.caption 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) = image_tag(screenshot.image.url(:large, timestamp: false), alt: screenshot.caption)
.imgcaption =screenshot.caption .imgcaption =screenshot.caption
.imgstatus =screenshot.status
// TODO: Enable button only if admin or uploader // TODO: Enable button only if admin or uploader
a.button.tiny.alert[ a.button.tiny.alert[
href=delete_screenshot_path(@package.name, screenshot.id) href=delete_screenshot_path(@package.name, screenshot.id)
@ -43,7 +37,6 @@
' application using the XUL user interface language. ' application using the XUL user interface language.
/ a.button.round.expand href=upload_package_by_name_path(name: @package.name) Upload more screenshots for #{@package.name}
a.button.round.expand data-reveal-id="upload-modal" Upload more screenshots for #{@package.name} a.button.round.expand data-reveal-id="upload-modal" Upload more screenshots for #{@package.name}
#upload-modal.reveal-modal data-reveal=true role='dialog' #upload-modal.reveal-modal data-reveal=true role='dialog'
@ -89,19 +82,6 @@
' If you don't use english by default please start your application ' If you don't use english by default please start your application
' from a shell using after setting "export LANG=C". ' from a shell using after setting "export LANG=C".
//javascript:
// $(function () {
// $('#fileupload').fileupload({
// dataType: 'json',
// done: function (e, data) {
// $.each(data.result.files, function (index, file) {
// $('<p/>').text(file.name).appendTo(document.body);
// });
// }
// });
// });
// TODO: Enable comment form // TODO: Enable comment form
//javascript: //javascript:
// $('#comment-summary').on( 'input', function() { // $('#comment-summary').on( 'input', function() {