Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Line(s) | 226 | Repeater { | |||
---|---|---|---|---|---|
232 | delegate: ReviewDelegate { | 232 | delegate: ReviewDelegate { | ||
233 | Layout.topMargin: Kirigami.Units.largeSpacing | 233 | Layout.topMargin: Kirigami.Units.largeSpacing | ||
234 | separator: false | 234 | separator: false | ||
235 | compact: true | 235 | compact: true | ||
236 | Layout.bottomMargin: Kirigami.Units.largeSpacing | 236 | Layout.bottomMargin: Kirigami.Units.largeSpacing | ||
237 | } | 237 | } | ||
238 | } | 238 | } | ||
239 | LinkButton { | 239 | LinkButton { | ||
240 | text: i18n("Review") | 240 | text: i18n("Be the first to write a review!") | ||
241 | onClicked: reviewsSheet.openReviewDialog() | 241 | onClicked: reviewsSheet.openReviewDialog() | ||
242 | visible: !commentsButton.visible && reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application) | 242 | visible: !commentsButton.visible && reviewsModel.backend && reviewsModel.backend.isResourceSupported(appInfo.application) | ||
243 | } | 243 | } | ||
244 | LinkButton { | 244 | LinkButton { | ||
245 | id: commentsButton | 245 | id: commentsButton | ||
246 | readonly property QtObject rating: appInfo.application.rating | 246 | readonly property QtObject rating: appInfo.application.rating | ||
247 | visible: rating && rating.ratingCount>0 && reviewsModel.count | 247 | visible: rating && rating.ratingCount>0 && reviewsModel.count | ||
248 | text: i18n("Show more reviews (%1)...", rating ? reviewsModel.count : 0) | 248 | text: i18n("Show more reviews (%1)...", rating ? reviewsModel.count : 0) | ||
▲ Show 20 Lines • Show All 156 Lines • Show Last 20 Lines |