Commit graph

63 commits

Author SHA1 Message Date
d6c5508fdd Fixed use of default scope for Rails 4.x 2013-08-21 22:56:22 +02:00
0277a4e3d0 Merge remote-tracking branch 'remotes/origin/bootstrap3'
Conflicts:
	app/views/packages/index.html.erb
2013-08-21 19:25:26 +02:00
517557711f Experimenting with search form 2013-08-21 19:23:52 +02:00
Haas, Christoph
6ecda590d7 Trying to use Bootstrap 3
Unfortunately it's not working yet. Error:
File to import not found or unreadable: twitter/bootstrap
2013-08-21 18:11:00 +02:00
Haas, Christoph
d79b3a9986 Added therubyracer dependency
Unclear why this is needed. After all we are not using LESS.
2013-08-21 14:44:52 +02:00
Haas, Christoph
0d4d55d474 Removing accidentally created file 2013-08-21 14:35:33 +02:00
Haas, Christoph
7d7fe366ec Unpacking screenshot tarball in script 2013-08-21 14:34:31 +02:00
Haas, Christoph
7ed2ae0ba0 Added script to get database dump and screenshot files from old
debshots1 live server
2013-08-21 14:29:08 +02:00
Haas, Christoph
bf166a75c8 Color of logo slightly changed 2013-08-20 16:03:28 +02:00
Haas, Christoph
c48dc91278 New logo invented 2013-08-20 15:49:20 +02:00
50601b9dcb Fixed styling of pagination bootstrap-style 2013-08-11 23:40:20 +02:00
d7c7488c86 Trying to improve design 2013-08-11 23:38:38 +02:00
857a2706b0 Fancybox plugin added to show large screenshot images. 2013-08-11 23:19:24 +02:00
35510212ba Added package pagination using kaminari 2013-08-10 15:03:31 +02:00
8a0a8d7577 Commented out unused CSS styling 2013-08-10 15:03:22 +02:00
c7c7640619 Revert "Trying to implement AJAX-based endless-page pagination"
This reverts commit 732af154ad.
2013-08-10 14:46:37 +02:00
732af154ad Trying to implement AJAX-based endless-page pagination 2013-08-10 14:46:09 +02:00
31f11c2d24 Updated 404-thumbnail drawing 2013-08-10 14:44:42 +02:00
e88416fbbd Trying to fix UTF-8 meta encoding 2013-08-10 14:44:19 +02:00
d3f0e163c9 Improved styling of "More screenshots…" box at the bottom 2013-08-09 23:31:10 +02:00
d4b82892d5 Improved bootstrap-style search form 2013-08-09 23:30:55 +02:00
60a9bd213d Displaying placeholder thumbnail if package does not have a screenshot. 2013-08-09 23:16:04 +02:00
b581a49e33 Added mockup and image for a not-found thumbnail placeholder image 2013-08-09 23:15:40 +02:00
b703efe785 Properly bootstrap-style media grid for thumbnails 2013-08-09 23:02:22 +02:00
6aef2a7da5 Added proper HTML5-style UTF8 encoding definition 2013-08-09 23:01:51 +02:00
2448e71574 Crap removed 2013-08-09 23:01:33 +02:00
92cafe50b0 Trying to improve bootstrap layout. Thumbnail grid still broken. 2013-08-08 23:15:04 +02:00
2a96f701ca Setting HTML5 default language to "en" 2013-08-08 23:14:39 +02:00
9b9a4c7566 Removing crap 2013-08-08 23:14:28 +02:00
df39fba0ba Replaced .count by .length to omit one SQL query.
Slightly rearranged the display.
2013-08-08 22:39:39 +02:00
110cd16d6e Adding database index on full-text search for better performance. 2013-08-08 22:32:41 +02:00
d1d4cea63a Using proper SQL query to search for multiple search words. 2013-08-08 22:32:20 +02:00
ee530072eb Added package.text_search for full-text searching the Package model 2013-08-08 21:50:03 +02:00
fca503df55 Order in building up the SQL query fixed 2013-08-08 21:49:46 +02:00
47b3253de3 Removed old useless code that was commented-out anyway. 2013-08-08 20:32:52 +02:00
ca78fbabd4 Avoiding SQL queries by using .length instead of .count after eager-loading 2013-08-08 20:32:34 +02:00
928a39dcea Re-displaying search query from previous search in text field 2013-08-08 20:29:55 +02:00
362745037a Fixed screenshots count in search results
Now packages without screenshots do not raise an exception any more.
2013-08-08 20:23:24 +02:00
950d48883c Using PostgreSQL's fulltext search feature 2013-08-08 20:23:01 +02:00
856b43d067 Sorting screenshots from new to old by default 2013-08-07 22:07:15 +02:00
6e9ff16913 Added Twitter Bootstrapp with SASS support 2013-08-07 22:06:14 +02:00
78b8f594af Enforce eager loading of backreferencing to avoid wasteful SQL queries 2013-08-07 21:37:14 +02:00
20a627a270 meta_request gem added for Chrome debugging 2013-08-07 20:38:49 +02:00
76d19f7e78 Unsuccessful attempt to properly eager load screenshots.
Currently the virtual attribute "image_url" in the screenshots model
apparently runs one SQL query each to get the packages data.
2013-08-07 00:18:20 +02:00
88dfb33721 Return results for packages only with screenshots.
Currently the packages controller is not working well. The JOIN is not
the best way apparently as the 'description' column exists for both the
"packages" and the "screenshots" table. So another way to query for
the data needs to be found.
2013-08-06 23:36:48 +02:00
f9e920aea5 Added migration to add timestamp column for screenshots 2013-08-06 22:37:17 +02:00
6454f994a9 Update gitignore to avoid checking in test screenshots 2013-08-06 22:36:16 +02:00
481476a4a8 Added automatically generated tests. 2013-08-06 22:36:04 +02:00
b62c799ee8 Added image_url method for Screenshot model 2013-08-06 22:35:42 +02:00
5559fbecd3 Added one-to-many relation between packages and screenshots 2013-08-06 22:35:05 +02:00