go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/chirp/pkg/static/_views/control_notification.html (about)

     1  <!--
     2  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     3  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     4  -->
     5  {{ define "control_notification" }}
     6  <li class="row notification {{ if .ReadUTC | not }}notification-unread{{ end }}">
     7    <div class="one columns align-right">
     8      <img class="profile-picture-medium" src="{{ .ActingUser.PictureURL }}" title="{{ .ActingUser.Username }}" />
     9    </div>
    10    <div class="eight columns">
    11      <a class="user-username" href="/profile/{{ .ActingUser.Email }}">{{ .ActingUser.Username }}</a>
    12  {{ if eq .Type "follow" }}
    13      {{ localize "followed you" }}.
    14  {{ else if eq .Type "like" }}
    15      {{ localize "liked your" }}&nbsp;<a href="/chirp/{{ .Chirp.ID }}">{{ localize "post" }}</a>.
    16  {{ else }}
    17      {{ .Type }}
    18  {{ end }}
    19      <span class="age">{{ .CreatedUTC | age }}</span>
    20    </div>
    21    <div class="one column">
    22      {{ template "control_follow" .ActingUser.Status }}
    23    </div>
    24  </li>
    25  {{ end }}