-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #617 from wireapp/dev
staging bump 2017-01-11
- Loading branch information
Showing
60 changed files
with
1,594 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<div id="collection-details" | ||
class="collection content-wrapper" | ||
data-bind="with: $root.collection_details, removed_from_view: $root.collection_details.removed_from_view"> | ||
|
||
<!-- ko if: conversation_et() --> | ||
|
||
<div class="content-titlebar"> | ||
|
||
<div class="content-titlebar-items-left"> | ||
<span class="content-titlebar-icon icon-back" data-bind="click: click_on_back_button"></span> | ||
</div> | ||
|
||
<span class="content-titlebar-items-center"> | ||
<span><span class="label-bold-xs">Pictures</span> <span class="text-graphite">in</span> <span class="text-graphite" data-bind="text: conversation_et().display_name()"></span></span> | ||
</span> | ||
|
||
</div> | ||
|
||
<div class="content-list"> | ||
|
||
<div class="collection-images"> | ||
|
||
<!-- ko if: template() === 'images' --> | ||
<!-- ko foreach: {data: items(), as: 'message_et'} --> | ||
<image-component class="collection-image" params="asset: message_et.get_first_asset().resource"></image-component> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: template() === 'links' --> | ||
<!-- ko foreach: {data: items(), as: 'message_et'} --> | ||
<link-preview-compact-asset params="message: message_et, header: true"></link-preview-compact-asset> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: template() === 'files' --> | ||
<!-- ko foreach: {data: items(), as: 'message_et'} --> | ||
<file-asset class="collection-file" params="message: message_et, header: true"></file-asset> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: template() === 'audio' --> | ||
<!-- ko foreach: {data: items(), as: 'message_et'} --> | ||
<audio-asset class="collection-file" params="message: message_et, header: true"></audio-asset> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: template() === 'video' --> | ||
<!-- ko foreach: {data: items(), as: 'message_et'} --> | ||
<video-asset class="collection-file" params="message: message_et"></video-asset> | ||
<!-- /ko --> | ||
<!-- /ko --> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<!-- /ko --> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
<div id="collection" | ||
class="collection content-wrapper" | ||
data-bind="with: $root.collection, removed_from_view: $root.collection.removed_from_view"> | ||
|
||
<!-- ko if: conversation_et() --> | ||
|
||
<div class="content-titlebar"> | ||
|
||
<span class="content-titlebar-items-center" data-bind="text: conversation_et().display_name()"></span> | ||
|
||
<div class="content-titlebar-items-right"> | ||
<span class="content-titlebar-icon icon-close" data-bind="click: click_on_back_button"></span> | ||
</div> | ||
|
||
</div> | ||
|
||
<div class="content-list collection-list"> | ||
|
||
<!-- ko ifnot: no_items_found() --> | ||
|
||
<!-- ko if: images().length --> | ||
<section class="collection-section" data-uie-name="collection-section-image"> | ||
<header> | ||
<span class="collection-header-icon icon-library"></span> | ||
<span class="label-bold-xs">Pictures</span> | ||
<!-- ko if: images().length > 10 --> | ||
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('images', images()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': images().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span> | ||
<!-- /ko --> | ||
</header> | ||
<div class="collection-images"> | ||
<!-- ko foreach: {data: images.slice(0,10), as: 'message_et'} --> | ||
<image-component class="collection-image" data-bind="click: $parent.click_on_image" params="asset: message_et.get_first_asset().resource"></image-component> | ||
<!-- /ko --> | ||
</div> | ||
</section> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: links().length --> | ||
<section class="collection-section" data-uie-name="collection-section-link"> | ||
<header> | ||
<span class="collection-header-icon icon-link"></span> | ||
<span class="label-bold-xs">Links</span> | ||
<!-- ko if: links().length > 4 --> | ||
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('links', links()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': links().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span> | ||
<!-- /ko --> | ||
</header> | ||
<div class="collection-images"> | ||
<!-- ko foreach: {data: links.slice(0,4), as: 'message_et'} --> | ||
<link-preview-compact-asset params="message: message_et, header: true"></link-preview-compact-asset> | ||
<!-- /ko --> | ||
</div> | ||
</section> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: video().length --> | ||
<section class="collection-section" data-uie-name="collection-section-video"> | ||
<header> | ||
<span class="collection-header-icon icon-video"></span> | ||
<span class="label-bold-xs">Videos</span> | ||
<!-- ko if: video().length > 4 --> | ||
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('video', video()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': video().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span> | ||
<!-- /ko --> | ||
</header> | ||
<div class="collection-images"> | ||
<!-- ko foreach: {data: video.slice(0,4), as: 'message_et'} --> | ||
<video-asset class="collection-video" params="message: message_et"></video-asset> | ||
<!-- /ko --> | ||
</div> | ||
</section> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: audio().length --> | ||
<section class="collection-section" data-uie-name="collection-section-audio"> | ||
<header> | ||
<span class="collection-header-icon icon-microphone"></span> | ||
<span class="label-bold-xs">Audio messages</span> | ||
<!-- ko if: audio().length > 4 --> | ||
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('audio', audio()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': audio().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span> | ||
<!-- /ko --> | ||
</header> | ||
<div class="collection-images"> | ||
<!-- ko foreach: {data: audio.slice(0,4), as: 'message_et'} --> | ||
<audio-asset class="collection-file" params="message: message_et, header: true"></audio-asset> | ||
<!-- /ko --> | ||
</div> | ||
</section> | ||
<!-- /ko --> | ||
|
||
<!-- ko if: files().length --> | ||
<section class="collection-section" data-uie-name="collection-section-file"> | ||
<header> | ||
<span class="collection-header-icon icon-file"></span> | ||
<span class="label-bold-xs">files</span> | ||
<!-- ko if: files().length > 4 --> | ||
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('files', files()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': files().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span> | ||
<!-- /ko --> | ||
</header> | ||
<div class="collection-images"> | ||
<!-- ko foreach: {data: files.slice(0,4), as: 'message_et'} --> | ||
<file-asset class="collection-file" params="message: message_et, header: true"></file-asset> | ||
<!-- /ko --> | ||
</div> | ||
</section> | ||
<!-- /ko --> | ||
|
||
<!-- /ko --> | ||
|
||
<!-- ko if: no_items_found() --> | ||
|
||
<div class="absolute-center" data-uie-name="collection-no-items"> | ||
<div class="collection-no-items-icon icon-collection"></div> | ||
<div class="label-bold-xs text-graphite text-center">No items</div> | ||
</div> | ||
|
||
<!-- /ko --> | ||
|
||
</div> | ||
|
||
<!-- /ko --> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div id="detail-view" class="modal detail-view"> | ||
<img class="detail-view-image modal-content-anim-close" data-bind="attr: {src: image_src()}, css: {'modal-content-anim-open': image_visible()}" data-uie-name="status-picture"/> | ||
<div class="detail-view-close-button"> | ||
<span class="icon-close icon-button" data-bind="click: hide_detail_view" data-uie-name="do-close-detail-view"></span> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# | ||
# Wire | ||
# Copyright (C) 2016 Wire Swiss GmbH | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see http://www.gnu.org/licenses/. | ||
# | ||
|
||
window.z ?= {} | ||
z.components ?= {} | ||
|
||
class z.components.AssetHeader | ||
|
||
constructor: (params) -> | ||
@message_et = params.message | ||
|
||
|
||
ko.components.register 'asset-header', | ||
viewModel: z.components.AssetHeader | ||
template: """ | ||
<span data-bind="text: message_et.sender_name(), css: message_et.accent_color" class="asset-header-name"></span> | ||
<span data-bind="text: moment(message_et.timestamp).format('D.M H:mm')" class="asset-header-time"></span> | ||
""" |
Oops, something went wrong.