diff options
| author | ryderr <r@okfoc.us> | 2014-10-08 16:11:34 -0400 |
|---|---|---|
| committer | ryderr <r@okfoc.us> | 2014-10-08 16:11:34 -0400 |
| commit | e8068ae91bede7188d45c06a3dba5a50bedd0b4b (patch) | |
| tree | 3f070887c9429e88b2431471679271405b8b5b47 /views/projects/list-projects.ejs | |
| parent | 1fb387d7329f54fe845d49a038e9ce4daf868852 (diff) | |
| parent | 084769b40b5ab5dc8fa2f2dfa82d1ebc4ff41795 (diff) | |
Merge branch 'master' of github.com:okfocus/vvalls
Diffstat (limited to 'views/projects/list-projects.ejs')
| -rw-r--r-- | views/projects/list-projects.ejs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/views/projects/list-projects.ejs b/views/projects/list-projects.ejs index f469f5c..45b73e2 100644 --- a/views/projects/list-projects.ejs +++ b/views/projects/list-projects.ejs @@ -11,16 +11,16 @@ [[ } ]] <span class="room" style="background-color: rgb([[- project.color ]]);"> - <span class="images" data-mediaCount="[[- Math.min(project.media.length, 1) ]]"> + <span class="mask" style="background-image: url([[- project.photo ]]);"> + </span> + <span class="images" data-mediaCount="[[- Math.min(project.media.length, 3) ]]"> [[ mediaCount = 0 ]] [[ project.media.some(function(media){ ]] [[ if (media.media.type != "image") { return false } ]] - [[ if (++mediaCount > 1) { return true } ]] + [[ if (++mediaCount > 3) { return true } ]] <img src="[[- media.media.url ]]"> [[ }) ]] </span> - <span class="mask" style="background-image: url([[- project.photo ]]);"> - </span> </span> <label> |
