<commit_before>- project = ProjectPresenter.new(current_project)

.project-page
  .header
    .left
      .title
        = project.name

      .description
        = project.description

  .details
    main

      = render 'nav'

      .tab.info

        .item-details-table
          .row.start-date
            .icon
            .title= Task.human_attribute_name(:start_date)
            .details
              = project.start_date

          .row.due-date
            .icon
            .title= Task.human_attribute_name(:due_date)
            .details
              = project.due_date

          .row.work-group
            .icon
            .title= Task.human_attribute_name(:working_group)
            .details
              = project.working_group.name

          .row.organizer
            .details= t(".organized-by", name: project.admin.name)

      .tab.tasks
        - if project.tasks.empty?
          a.button href=new_circle_task_path(current_circle, project_id: project.id)
            = t('helpers.new', model: Task.model_name.singular)
        - else
          = render partial: 'circle/tasks/task_list', locals: { circle: current_circle, tasks: project.tasks }

      .tab.supplies
        - if project.supplies.empty?
          a.button href=new_circle_supply_path(current_circle, project_id: project.id)
            = t('helpers.new', model: Supply.model_name.singular)
        - else
          = render partial: 'circle/supplies/supply_list', locals: { circle: current_circle, supplies: project.supplies }


    aside

      .actions

        / FIXME completing projects in not implemented yet
        / - if can? :complete, current_project<commit_msg>Projects: fix icons #29<commit_after>- project = ProjectPresenter.new(current_project)

.project-page
  .header
    .left
      .title
        = project.name

      .description
        = project.description

  .details
    main

      = render 'nav'

      .tab.info

        .item-details-table
          .row.start_date
            .icon
            .title= Task.human_attribute_name(:start_date)
            .details
              = project.start_date

          .row.due-date
            .icon
            .title= Task.human_attribute_name(:due_date)
            .details
              = project.due_date

          .row.working_group
            .icon
            .title= Task.human_attribute_name(:working_group)
            .details
              = project.working_group.name

          .row.organizer
            .details= t(".organized-by", name: project.admin.name)

      .tab.tasks
        - if project.tasks.empty?
          a.button href=new_circle_task_path(current_circle, project_id: project.id)
            = t('helpers.new', model: Task.model_name.singular)
        - else
          = render partial: 'circle/tasks/task_list', locals: { circle: current_circle, tasks: project.tasks }

      .tab.supplies
        - if project.supplies.empty?
          a.button href=new_circle_supply_path(current_circle, project_id: project.id)
            = t('helpers.new', model: Supply.model_name.singular)
        - else
          = render partial: 'circle/supplies/supply_list', locals: { circle: current_circle, supplies: project.supplies }


    aside

      .actions

        / FIXME completing projects in not implemented yet
        / - if can? :complete, current_project
{'fraction_non_alphanumeric': 0.0976481095564156, 'fraction_numerical': 0.0005954153021732659, 'mean_word_length': 1.7860696517412935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3092480', 'n_tokens_mistral': 969, 'n_tokens_neox': 934, 'n_words': 182}