Merge lp:~zematynnad/ubuntu-webcatalog/screenshot_enlarge_845911 into lp:ubuntu-webcatalog
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Anthony Lenton | ||||
Approved revision: | 117 | ||||
Merged at revision: | 123 | ||||
Proposed branch: | lp:~zematynnad/ubuntu-webcatalog/screenshot_enlarge_845911 | ||||
Merge into: | lp:ubuntu-webcatalog | ||||
Diff against target: |
300 lines (+127/-81) 7 files modified
src/webcatalog/static/css/carousel.css (+20/-1) src/webcatalog/static/js/carousel.js (+2/-2) src/webcatalog/static/js/screenshots.js (+96/-0) src/webcatalog/templates/light/index.1col.html (+1/-1) src/webcatalog/templates/webcatalog/application_detail.html (+4/-2) src/webcatalog/templates/webcatalog/screenshot_widget.html (+4/-58) src/webcatalog/tests/test_views.py (+0/-17) |
||||
To merge this branch: | bzr merge lp:~zematynnad/ubuntu-webcatalog/screenshot_enlarge_845911 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Anthony Lenton (community) | Approve | ||
Natalia Bidart (community) | Approve | ||
Review via email: mp+102926@code.launchpad.net |
Commit message
Adds a panel for enlarged application screenshot images.
Description of the change
Overview
========
This branch adds a panel that displays an enlarged image for the application screenshots.
Details
========
If there are no screnshots and none are loaded via ajax then no panel is needed and no panel is loaded.
If there is a single image or a carousel for multiple screenshots then the panel will be displayed when the user clicks on a thumbnail.
Pic of one screenshot and then the enlarged image:
http://
http://
Pic of carousel and then the enlarged image:
http://
http://
To Test
========
$fab bootstrap test
On Fri, Apr 20, 2012 at 9:54 PM, Danny Tamez <email address hidden> wrote: ca-hackers) /bugs.launchpad .net/ubuntu- webcatalog/ +bug/845911 /code.launchpad .net/~zematynna d/ubuntu- webcatalog/ screenshot_ enlarge_ 845911/ +merge/ 102926 simplest- image-hosting. net/png- 0-rz2643 simplest- image-hosting. net/png- 0-en2643 simplest- image-hosting. net/png- 0-jp2643 simplest- image-hosting. net/png- 0-md2643
> Danny Tamez has proposed merging lp:~zematynnad/ubuntu-webcatalog/screenshot_enlarge_845911 into lp:ubuntu-webcatalog.
>
> Requested reviews:
> Canonical Consumer Applications Hackers (canonical-
> Related bugs:
> Bug #845911 in Ubuntu Apps Directory: "WC should ape USC screenshot behaviour"
> https:/
>
> For more details, see:
> https:/
>
> Overview
> ========
> This branch adds a panel that displays an enlarged image for the application screenshots.
>
> Details
> ========
> If there are no screnshots and none are loaded via ajax then no panel is needed and no panel is loaded.
> If there is a single image or a carousel for multiple screenshots then the panel will be displayed when the user clicks on a thumbnail.
>
> Pic of one screenshot and then the enlarged image:
> http://
> http://
> Pic of carousel and then the enlarged image:
> http://
> http://
Cool - thanks for the screenshots! It looks great!
Just summarising the comments below: tsPanel( {...config options});
1) It'd be great if the new JS code that you're adding could be
stripped of any django template code and moved to an external js file
(or YUI module file). The template pages are getting way too much
inline JS IMO (which usually translates to non-reusable code and hard
to understand templates). This would mean the page simply does
something like: new Y.uwc.Screensho
Another option is that it could be built-in to the carousel, or a
subclass of the carousel? This would obviously be easier if we updated
the carousel to handle just one image properly rather than having if
statements that only include the carousel when there's > 1 image.
2) If you wanted to and were keen, the same could be done for the
other JS code there, but otherwise I'll create a bug or do it as a
fly-by on another branch at some point.
It may be worth checking with Anthony, as he might have a different
opinion and think it's not worthwhile - if so, I'm happy to +1 this as
is - it just scares me seeing more and more non-reusable JS with
template tags intertwined going directly into our templates.
Let me know what you think!
> /code.launchpad .net/~zematynna d/ubuntu- webcatalog/ screenshot_ enlarge_ 845911/ +merge/ 102926 /static/ css/carousel. css' static/ css/carousel. css 2012-04-19 23:05:19 +0000 static/ css/carousel. css 2012-04-20 19:53:20 +0000
> To Test
> ========
> $fab bootstrap test
> --
> https:/
> Your team Canonical Consumer Applications Hackers is requested to review the proposed merge of lp:~zematynnad/ubuntu-webcatalog/screenshot_enlarge_845911 into lp:ubuntu-webcatalog.
>
> === modified file 'src/webcatalog
> --- src/webcatalog/
> +++ src/webcatalog/
> @@ -219,3 +219,21 @@
> top: -15px;
> clear: both;
> }
> +.yui3-panel {
> + outline: none;
> +}
> +#viewerPanel {
> + -webkit-box-shadow: 0px 0px 2px ...