summaryrefslogtreecommitdiff
path: root/templates/artwork/artwork_template.twig
blob: fe55f6a446d1376bea1ac7fc7c7022b205f8d079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{% if artworkSettings.isPreview == true %}
  <div class="content">
    {% if artworkSettings.artworkHeader != "" %}
    <h4>{{ artworkSettings.artworkHeader }}</h4>
    {% endif %}

    <div class="row">
      <div class="column column-5">
        {% if artworkSettings.isVotable == true %}
          <!--TODO: vote artworks-->
          <button class="vote"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i></button>
          {{ artwork.getVotesTotal() }}
          <button class="vote"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i></button>
        {% endif %}
      </div>
      <div class="column column-95">
        <div>
          <img class="image" src='{{ artwork.path }}'>
        </div>
        <div>
          <button onclick="location.href='/card/{{ card.id }}/artwork/{{ artwork.id }}'">View Artwork</button>
        </div>
      </div>
    </div>
  </div>
{% else %}
  <section id="artwork" class="content">
    <h3>Artwork</h3>
  </section>

  <div class="content">
    <!-- TODO: what is there to edit? or just remove? and add new? -->
    <button onclick="location.href='/card/{{ card.id }}'">Goto Card</button>
    <button>Remove Artwork</button>
  </div>

  <div class="content">
    <div class="row">
      <div class="column column-5">
        {% if artworkSettings.isVotable == true %}
          <!--TODO: vote artworks-->
          <button class="vote"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i></button>
          {{ artwork.getVotesTotal() }}
          <button class="vote"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i></button>
        {% endif %}
      </div>
      <div class="column column-95">
        <div>
          <img class="image" src='{{ artwork.path }}'>
        </div>
      </div>
    </div>
  </div>
{% endif %}