<commit_before>{{ extends "layouts/profile" }}
{{ import "layouts/partials/menu/profile" }}
{{block title()}}{{  T("profile_edit_page", User.Username) }}{{end}}
{{ block profile_navigation()}}{{ yield profile_menu(route="profile") }}{{end}}
{{block profile_content()}}
{{ if len(User.Notifications) > 0}}
<div>
  <a href="/notifications?clear" class="btn btn-red pull-right"> {{  T("clear_notifications") }}</a>
  <div style="clear: both;"></div>
</div>
<table>
  {{ range User.Notifications }}
  <tr>
    <td{{ if !.Read }} class="btn-orange"{{end}}>
    <div style="padding: 0 1rem 1rem;">
      <a href="{{ .URL }}?notif">
        <h3>{{ .Content }}</h3>
      </a>
    </div>
  </td>
</tr>
{{end}}
</table>
{{else}}
<h2>{{  T("no_notifications") }}</h2>
{{end}}
{{end}}<commit_msg>redesign of notification, html<commit_after>{{ extends "layouts/profile" }}
{{ import "layouts/partials/menu/profile" }}
{{block title()}}{{  T("profile_edit_page", User.Username) }}{{end}}
{{ block profile_navigation()}}{{ yield profile_menu(route="profile") }}{{end}}
{{block profile_content()}}
<table class="notification-table">
  <thead>
	<tr>
	  <th class="notification-status">{{T("status")}}</th>
	  <th class="notification-event">Event</th>
	  <th class="notification-date">{{T("date")}}</th>
	</tr>
  </thead>
  <tbody>
  {{if len(User.Notifications) == 0}}
  <tr><td colspan="3">{{T("no_notifications")}}</td></tr>
  {{end}}
  {{ range User.Notifications }}
	  <tr>
		<td class="notification-status {{ if !.Read }}notification-unread{{end}}">{{if .Read}}{{T("read")}}{{else}}{{T("unread")}}{{end}}</td>
		<td class="notification-event">
			<a href="{{ .URL }}?notif">>{{ .Content }}</a>
		</td>
		{{if !.Date.IsZero()}}
		<td class="date-full" title="{{formatDate(.Date, false)}}">{{formatDate(.Date, true)}}</td>
		{{else}}
		<td>{{T("unknown")}}</td>
		{{end}}
	  </tr>
	{{end}}	
	</tbody>
</table>
<div id="clear-notification">
  <hr/>
  <a href="/notifications?clear_all" class="btn-red form-input"> {{  T("clear_all_notifications") }}</a>
  <a href="/notifications?clear" class="btn-green form-input"> {{  T("clear_notifications") }}</a>
</div>
{{end}}
{'fraction_non_alphanumeric': 0.27238979118329465, 'fraction_numerical': 0.004640371229698376, 'mean_word_length': 5.1424501424501425, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 62, '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': '4658338', 'n_tokens_mistral': 825, 'n_tokens_neox': 786, 'n_words': 151}