Permalink
Browse files

added cover images to top releases list

  • Loading branch information...
1 parent 74e58b0 commit 769ebf82934b1a7dff2266af792b944abed816b6 @brunotavares committed Dec 13, 2011
Showing with 28 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +1 −0 app.js
  3. +7 −2 app/view/release/List.js
  4. +1 −1 resources/css/app.css
  5. +1 −0 resources/css/view/release-list.css
  6. BIN resources/sass/.sass-cache/10739646b00935cf665a5695ecccc8cfe55e3179/_core.scssc
  7. BIN resources/sass/.sass-cache/10739646b00935cf665a5695ecccc8cfe55e3179/_layout.scssc
  8. BIN resources/sass/.sass-cache/10739646b00935cf665a5695ecccc8cfe55e3179/_reset.scssc
  9. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_buttons.scssc
  10. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_carousel.scssc
  11. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_form-sliders.scssc
  12. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_form.scssc
  13. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_img.scssc
  14. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_indexbar.scssc
  15. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_list.scssc
  16. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_loading-spinner.scssc
  17. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_map.scssc
  18. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_media.scssc
  19. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_msgbox.scssc
  20. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_panel.scssc
  21. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_picker.scssc
  22. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_sheets.scssc
  23. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_tabs.scssc
  24. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_toolbar-forms.scssc
  25. BIN resources/sass/.sass-cache/533aceaf7aeb022f45a0bd8d9514cd58ddbb1c6a/_toolbar.scssc
  26. BIN resources/sass/.sass-cache/6fe93ee15201d5ccc2a0a4fbc50ba3aec97f3cc6/release-list.scssc
  27. BIN resources/sass/.sass-cache/6fe93ee15201d5ccc2a0a4fbc50ba3aec97f3cc6/release_list.scssc
  28. BIN resources/sass/.sass-cache/76aad154c94366144b60d16a37f5bc1611d98aba/_link-colors.scssc
  29. BIN resources/sass/.sass-cache/79b211f767f275be4776b3f2a9d1cbbbf6f1731b/app.scssc
  30. BIN resources/sass/.sass-cache/82acb755719ca078b6a188f05125e2356376e5bf/_css3.scssc
  31. BIN resources/sass/.sass-cache/82acb755719ca078b6a188f05125e2356376e5bf/_support.scssc
  32. BIN resources/sass/.sass-cache/8856c280b887841143335f3bd8aee80d6093b5db/_float.scssc
  33. BIN resources/sass/.sass-cache/8856c280b887841143335f3bd8aee80d6093b5db/_hacks.scssc
  34. BIN resources/sass/.sass-cache/c6cb2aac789ee0a645a6b5bd31e264945bed4570/_colors.scssc
  35. BIN resources/sass/.sass-cache/c6cb2aac789ee0a645a6b5bd31e264945bed4570/_typography.scssc
  36. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_appearance.scssc
  37. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_background-clip.scssc
  38. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_background-origin.scssc
  39. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_background-size.scssc
  40. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_border-radius.scssc
  41. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_box-shadow.scssc
  42. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_box-sizing.scssc
  43. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_box.scssc
  44. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_columns.scssc
  45. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_font-face.scssc
  46. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_gradient.scssc
  47. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_images.scssc
  48. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_inline-block.scssc
  49. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_opacity.scssc
  50. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_shared.scssc
  51. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_text-shadow.scssc
  52. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_transform.scssc
  53. BIN resources/sass/.sass-cache/d1a36939c04cde46fc78e9ed5f497c46ad8ff0e1/_transition.scssc
  54. BIN resources/sass/.sass-cache/ec265f103143e9368d8cca9a71fa4c0c70dba171/_all.scssc
  55. BIN resources/sass/.sass-cache/ec265f103143e9368d8cca9a71fa4c0c70dba171/_core.scssc
  56. BIN resources/sass/.sass-cache/ec265f103143e9368d8cca9a71fa4c0c70dba171/_global.scssc
  57. BIN resources/sass/.sass-cache/ec265f103143e9368d8cca9a71fa4c0c70dba171/_mixins.scssc
  58. BIN resources/sass/.sass-cache/ec265f103143e9368d8cca9a71fa4c0c70dba171/_variables.scssc
  59. BIN resources/sass/.sass-cache/ec265f103143e9368d8cca9a71fa4c0c70dba171/_widgets.scssc
  60. +3 −0 resources/sass/app.scss
  61. +14 −2 resources/sass/view/release-list.scss
View
@@ -0,0 +1 @@
+.sass-cache/
View
1 app.js
@@ -4,6 +4,7 @@ Ext.ClassManager.setAlias('Ext.data.proxy.YMusic', 'proxy.ymusic');
Ext.require([
'Ext.data.proxy.YMusic',
+ 'Ext.tab.Panel',
'Ext.XTemplate'
]);
View
@@ -2,10 +2,15 @@ Ext.define('YM.view.release.List', {
extend: 'Ext.dataview.List',
alias: 'widget.releaselist',
config: {
- title: 'New Releases',
+ title: 'Top Releases',
store: 'Releases',
+ cls: 'release-list',
itemTpl: new Ext.XTemplate(
- '<div class="release">{[this.getAutoIndex()]}. {artist} - {title}</div>',
+ '<article class="record">',
+ '<img src="http://d.yimg.com/ec/image/v1/release/{id};size=80x80" />',
+ '<h1>{[this.getAutoIndex()]}. {title}</h1>',
+ '<h2>{artist_name}</h2>',
+ '</article>',
{
getAutoIndex: function() {
this.autoIndex = this.autoIndex||1;
View

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1 @@
+.release-list .record{height:80px}.release-list .record img{float:left;margin-right:10px}.release-list .record h1{font-size:120%}.release-list .record h2{font-size:80%}
View
@@ -1,3 +1,6 @@
+//variables
+$base-color: #6B3F98;
+
//sencha
@import 'sencha-touch/default/all';
@@ -1,3 +1,15 @@
.release-list{
-
-}
+ .record{
+ height: 80px;
+ img{
+ float: left;
+ margin-right: 10px;
+ }
+ h1{
+ font-size: 120%
+ }
+ h2{
+ font-size: 80%
+ }
+ }
+}

0 comments on commit 769ebf8

Please sign in to comment.