<commit_before>class AppDetailsView extends KDScrollView

  constructor:->

    super

    app = @getData()
    {icns, identifier, version, authorNick} = app.manifest

    @listenWindowResize()

    @slideShow = new KDCustomHTMLView
      tagName   : "ul"
      pistachio : do ->
        slides = app.manifest.screenshots or []
        tmpl = ''
        for slide in slides
          tmpl += "<li><img src=\"#{KD.appsUri}/#{authorNick}/#{identifier}/#{version}/#{slide}\" /></li>"
        return tmpl

    @reviewView = new ReviewView {}, app

  viewAppended:->

    @setTemplate @pistachio()
    @template.update()

    @_windowDidResize()

  _windowDidResize:->
    @setHeight @parent.getHeight() - @parent.$('.kdview.profilearea').outerHeight(no) - @parent.$('>h2').outerHeight(no)

  click:(event)->

    if $(event.target).is('header a, header a span')
      log "right"

  scroll:(event)->
    if @getScrollTop() > 20
      @parent.$('.profilearea').addClass "cast-shadow"
    else
      @parent.$('.profilearea').removeClass "cast-shadow"

  pistachio:->
    """
    <header><a href='#'>About {{#(title)}}</a></header>
    <section>{{ @utils.applyTextExpansions #(manifest.description)}}</section>
    <header><a href='#'>Screenshots</a></header>
    <section class='screenshots'>{{> @slideShow}}</section>
    <header><a href='#'>Technical Stuff</a></header>
    <section><p><p></section>
    <header><a href='#'>Reviews</a></header>
    <section>{{> @reviewView}}</section>
    """<commit_msg>AppCatalog: Removed Technical Stuff and cleared Screenshots view if app has no screenshot.<commit_after>class AppDetailsView extends KDScrollView

  constructor:->

    super

    app = @getData()
    {icns, identifier, version, authorNick} = app.manifest

    @listenWindowResize()

    @slideShow = new KDCustomHTMLView
      tagName   : "ul"
      pistachio : do ->
        slides = app.manifest.screenshots or []
        tmpl = ''
        for slide in slides
          tmpl += "<li><img src=\"#{KD.appsUri}/#{authorNick}/#{identifier}/#{version}/#{slide}\" /></li>"
        return tmpl

    @reviewView = new ReviewView {}, app

  viewAppended:->

    @setTemplate @pistachio()
    @template.update()

    @_windowDidResize()

  _windowDidResize:->
    @setHeight @parent.getHeight() - @parent.$('.kdview.profilearea').outerHeight(no) - @parent.$('>h2').outerHeight(no)

  click:(event)->

    if $(event.target).is('header a, header a span')
      log "right"

  scroll:(event)->
    if @getScrollTop() > 20
      @parent.$('.profilearea').addClass "cast-shadow"
    else
      @parent.$('.profilearea').removeClass "cast-shadow"

  pistachio:->
    if @getData().manifest.screenshots
      screenshots = """
        <header><a href='#'>Screenshots</a></header>
        <section class='screenshots'>{{> @slideShow}}</section>
      """

    """
    <header><a href='#'>About {{#(title)}}</a></header>
    <section>{{ @utils.applyTextExpansions #(manifest.description)}}</section>
    #{screenshots or ""}
    <section><p><p></section>
    <header><a href='#'>Reviews</a></header>
    <section>{{> @reviewView}}</section>
    """
{'fraction_non_alphanumeric': 0.19043062200956937, 'fraction_numerical': 0.0019138755980861245, 'mean_word_length': 3.220726783310902, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3634543', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1000, 'n_words': 188}