Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 194 Lines • ▼ Show 20 Line(s) | 189 | Repeater { | |||
---|---|---|---|---|---|
195 | delegate: ReviewDelegate { | 195 | delegate: ReviewDelegate { | ||
196 | Layout.topMargin: Kirigami.Units.largeSpacing | 196 | Layout.topMargin: Kirigami.Units.largeSpacing | ||
197 | separator: false | 197 | separator: false | ||
198 | compact: true | 198 | compact: true | ||
199 | Layout.bottomMargin: Kirigami.Units.largeSpacing | 199 | Layout.bottomMargin: Kirigami.Units.largeSpacing | ||
200 | } | 200 | } | ||
201 | } | 201 | } | ||
202 | LinkButton { | 202 | LinkButton { | ||
203 | text: i18n("Be the first to write a review!") | 203 | text: appInfo.application.isInstalled? i18n("Be the first to write a review!") : i18n("Install this app and be the first to write a review!") | ||
204 | onClicked: reviewsSheet.openReviewDialog() | 204 | onClicked: reviewsSheet.openReviewDialog() | ||
205 | enabled: appInfo.application.isInstalled | 205 | enabled: appInfo.application.isInstalled | ||
206 | visible: !commentsButton.visible && reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application) | 206 | visible: !commentsButton.visible && reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application) | ||
207 | } | 207 | } | ||
208 | LinkButton { | 208 | LinkButton { | ||
209 | id: commentsButton | 209 | id: commentsButton | ||
210 | visible: reviewsModel.count > 0 | 210 | visible: reviewsModel.count > 0 | ||
211 | text: i18n("Show all %1 reviews...", reviewsModel.count) | 211 | text: i18n("Show all %1 reviews...", reviewsModel.count) | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |