<Page xmlns="http://schemas.nativescript.org/tns.xsd">
  <GridLayout rows="*, auto">
    <ScrollView>
      <StackLayout>
        <Image imageSource="{{ imageSource }}" stretch="aspectFill"/>
        <Label text="{{ title }}" class="detailsTitle" textWrap="true" />
      </StackLayout>
    </ScrollView>
    <StackLayout orientation="horizontal" row="1">
      <Label margin="2">
        <Label.formattedText>
          <FormattedString fontSize="20" color="#C6C6C6">
            <FormattedString.spans>
              <Span text="{{ author ? 'by ' + author : '' }}"/>
              <Span text="{{ num_comments ? ' | ' : '' }}" />
              <Span text="{{ num_comments ? num_comments + ' comments' : '' }}" color="#10C2B0"/>
            </FormattedString.spans>
          </FormattedString>
        </Label.formattedText>
      </Label>
    </StackLayout>
    <ActivityIndicator busy="{{ isLoading }}" />
  </GridLayout>
</Page>