Added /about page
This commit is contained in:
parent
29a8b611d4
commit
743579dc59
3 changed files with 114 additions and 0 deletions
|
|
@ -11,4 +11,9 @@ class WelcomeController < ApplicationController
|
|||
# TODO: Use the actually most popular package and not just a random one
|
||||
@most_popular_package = Package.with_screenshots.first
|
||||
end
|
||||
|
||||
def about
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
108
app/views/welcome/about.slim
Normal file
108
app/views/welcome/about.slim
Normal file
|
|
@ -0,0 +1,108 @@
|
|||
.row
|
||||
|
||||
h1 About this web site
|
||||
|
||||
p
|
||||
' This is a public repository of screenshots taken from applications contained
|
||||
' in the Debian GNU/Linux distribution and its derivates like Ubuntu. It was
|
||||
' created to help getting an impression of what a certain software will look
|
||||
' like on your desktop before you install it. Everybody can take screenshots and
|
||||
' upload them. Our admin team will just review your changes before they become
|
||||
' publicly visible.
|
||||
|
||||
h2 Which software packages are listed?
|
||||
|
||||
p
|
||||
' The information on packages listed on this site is taken from APT repositories
|
||||
' like Debian or Ubuntu. We are just throwing out packages that are bad
|
||||
' candidates for screenshots like transitional packages, header files or debug
|
||||
' packages. The repositories that we are scanning frequently are:
|
||||
|
||||
ul
|
||||
// TODO: show actually used repositories
|
||||
li repo1
|
||||
li repo2
|
||||
li repo3
|
||||
|
||||
h2 Who is using this site?
|
||||
|
||||
p
|
||||
' Many users interested in Linux distributions and their applications visit
|
||||
' this site either to look for specific pieces of software for certain use
|
||||
' cases or just to see if there are any new applications they may have missed out on.
|
||||
' And then there are several applications and web sites that use the screenshots
|
||||
' from this site:
|
||||
ul
|
||||
li Ubuntu's Software Center
|
||||
li Benjamin Mesing's <em>Packagesearch</em> application
|
||||
li
|
||||
a href="https://packages.debian.org" packages.debian.org
|
||||
li
|
||||
a href="https://packages.ubuntu.com" packages.ubuntu.com
|
||||
|
||||
h2 How you can use the screenshots
|
||||
|
||||
p
|
||||
' You can use the screenshots on your own website. Some useful URLs:
|
||||
|
||||
ul
|
||||
li
|
||||
// TODO: Use actual virtual host name here instead of hardcoding screenshots.debian.net
|
||||
' http://screenshots.debian.net/packages
|
||||
br
|
||||
' (List of all packages with screenshots)
|
||||
li
|
||||
' http://screenshots.debian.net/package/PACKAGENAME
|
||||
br
|
||||
' (Page with details and screenshots for a certain package)
|
||||
li
|
||||
' http://screenshots.debian.net/thumbnail/PACKAGENAME
|
||||
br
|
||||
' (Returns a thumbnail (160x120 pixels or less) of a package's first found
|
||||
' screenshot. If no screenshot was found then a dummy image will be returned
|
||||
' along with the HTTP code 404.)
|
||||
li
|
||||
' http://screenshots.debian.net/screenshot/PACKAGENAME
|
||||
br
|
||||
' (Returns a screenshot (800x600 pixels or less) of a package. If no
|
||||
' screenshot was found then a dummy image will be returned along with the
|
||||
' HTTP code 404.)
|
||||
li
|
||||
' http://screenshots.debian.net/rss
|
||||
br
|
||||
' (An RSS feed showing the most recently uploaded screenshots.)
|
||||
|
||||
' If you would like to get a complete list of packages or screenshots in JSON
|
||||
' format then contact us and we will give you the URL.
|
||||
|
||||
h2 Uploading new screenshots
|
||||
|
||||
p
|
||||
' Whether you are a developer or not - we appreciate if you upload screenshots.
|
||||
' See if your favorite package does not yet have a screenshot and
|
||||
a href=upload_package_path upload one
|
||||
' .
|
||||
|
||||
h2 Statistics
|
||||
|
||||
p
|
||||
// TODO: Use real values
|
||||
' We currently have #{@package_count} packages in our database.
|
||||
' 3798 of them have screenshots.
|
||||
' That makes a total of 7.8%.
|
||||
' We have #{@screenshot_count} screenshots on the server which means
|
||||
' every package has an average number of #{@pkg_avg_screenshots} screenshots.
|
||||
|
||||
p
|
||||
// TODO: Use plot about upload statistics
|
||||
' (Number of screenshots uploaded each month.)
|
||||
|
||||
h2 Who is behind this site?
|
||||
|
||||
p
|
||||
' This site has been developed and is maintained by Christoph Haas.
|
||||
' It runs on a web application called <em>debshots</em> that was written in Ruby-on-Rails.
|
||||
' debshots also uses a PostgreSQL database, the jQuery Javascript library
|
||||
' and the Zurb Foundation toolkit. Further code has been
|
||||
' contributed by Michael Vogt - programmer of Synaptic and Ubuntu's Software
|
||||
' Center.
|
||||
|
|
@ -15,6 +15,7 @@ Debshots::Application.routes.draw do
|
|||
get 'packages/list' => 'packages#list', as: :packages_list
|
||||
get 'package/:name' => 'packages#details', as: :package
|
||||
get 'upload/:name' => 'packages#upload', as: :upload_package
|
||||
get 'about' => 'welcome#about'
|
||||
|
||||
# The priority is based upon order of creation: first created -> highest priority.
|
||||
# See how all your routes lay out with "rake routes".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue