<commit_before># Copyright (c) 2015 <NAME> <<EMAIL>>

React     = require "react"
PureMixin = require "react-pure-render/mixin"

{ NAMES, CSS_CLASSES } = require "../constants/Categories"

{ div, p, h3, button, span, i } = React.DOM

module.exports = React.createClass

  displayName: "EntryDetails"

  mixins: [ PureMixin ]

  render: ->
    { entry } = @props
    clz = CSS_CLASSES[entry.categories?[0]]
    div className: "entry-detail #{clz}",
      div className: "category",
        span null, NAMES[entry.categories?[0]]
      div null,
        h3 null, entry.title
        p null, entry.description
        p null, entry.homepage
        p null, entry.phone
        div null,
          button
            onClick: @props.onClose
            className: "pure-button",
              i className: "fa fa-chevron-left"
              "zurück"
          button
            onClick: @props.onEdit
            className: "pure-button",
              i className: "fa fa-pencil"
              "bearbeiten"<commit_msg>fix(details): Make Homepage field clickable/a hyperlink<commit_after># Copyright (c) 2015 <NAME> <<EMAIL>>

React     = require "react"
PureMixin = require "react-pure-render/mixin"

{ NAMES, CSS_CLASSES } = require "../constants/Categories"

{ div, p, h3, button, span, i, a } = React.DOM

module.exports = React.createClass

  displayName: "EntryDetails"

  mixins: [ PureMixin ]

  render: ->
    { entry } = @props
    clz = CSS_CLASSES[entry.categories?[0]]
    div className: "entry-detail #{clz}",
      div className: "category",
        span null, NAMES[entry.categories?[0]]
      div null,
        h3 null, entry.title
        p null, entry.description
        p null, a href: entry.homepage, entry.homepage
        p null, entry.phone
        div null,
          button
            onClick: @props.onClose
            className: "pure-button",
              i className: "fa fa-chevron-left"
              "zurück"
          button
            onClick: @props.onEdit
            className: "pure-button",
              i className: "fa fa-pencil"
              "bearbeiten"
{'fraction_non_alphanumeric': 0.11899095668729176, 'fraction_numerical': 0.007615421227986673, 'mean_word_length': 2.1002949852507373, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '7467714', 'n_tokens_mistral': 674, 'n_tokens_neox': 643, 'n_words': 168}