2 * Copyright 2013 Canonical Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 * Renato Araujo Oliveira Filho <renato@canonical.com>
18 * Olivier Tilloy <olivier.tilloy@canonical.com>
22import Ubuntu.Components 0.1
23import Unity.IndicatorsLegacy 0.1 as Indicators
24import "utils.js" as Utils
29 expandedHeight: buttons.y + buttons.height + quickreply.height + units.gu(2)
30 heroMessageHeader.titleText.text: menu ? menu.label : ""
31 heroMessageHeader.subtitleText.text: menu ? menu.extra.canonical_text : ""
32 heroMessageHeader.subtitleText.color: "#e8e1d0"
33 heroMessageHeader.bodyText.text: menu ? Utils.formatDate(menu.extra.canonical_time) : ""
34 heroMessageHeader.bodyText.color: "#8f8f88"
39 anchors.left: parent.left
40 anchors.leftMargin: units.gu(2)
41 anchors.right: parent.right
42 anchors.rightMargin: units.gu(2)
43 anchors.top: heroMessageHeader.bottom
44 anchors.topMargin: units.gu(1)
51 anchors.left: parent.left
52 anchors.top: parent.top
53 anchors.bottom: parent.bottom
54 width: (parent.width - units.gu(1)) / 2
57 if (quickreply.state === "") {
58 quickreply.state = "expanded";
60 quickreply.state = "";
66 actionGroup: snapDecision.actionGroup
67 action: actionsDescription[0].name
69 text: actionsDescription ? actionsDescription[0].label : "Call back"
71 anchors.right: parent.right
72 anchors.top: parent.top
73 anchors.bottom: parent.bottom
74 width: (parent.width - units.gu(1)) / 2
79 when: snapDecision.state === "expanded"
86 transitions: Transition {
90 easing.type: Easing.OutQuad
98 actionGroup: snapDecision.actionGroup
99 action: actionsDescription[1].name
101 messages: actionsDescription ? actionsDescription[1]["parameter-hint"] : ""
102 buttonText: actionsDescription ? actionsDescription[1].label : "send"
105 topMargin: units.gu(2)
118 height: expandedHeight
128 transitions: Transition {
130 properties: "opacity,height"
132 easing.type: Easing.OutQuad
139 quickreply.state = "";
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list