Only show expiry date and time on pastes that expire

master
Les De Ridder 7 years ago
parent 9297dca6a3
commit 548afab212
  1. 8
      resources/views/paste/available.blade.php

@ -27,6 +27,8 @@
font-weight: 300;
font-size: 12px;
margin-bottom: 5px;
user-select: none;
-webkit-user-select: none;
}
pre {
@ -45,7 +47,11 @@
</head>
<body>
<header>
{{ $id }} (language: {{ $language }}, expires at: {{ $expires_at }} UTC)
@if($expires_at !== null)
{{ $id }} ({{ $language }}, expires at: {{ $expires_at }} UTC)
@else
{{ $id }} ({{ $language }}, doesn't expire)
@endif
</header>
<section>
{!! $content !!}

Loading…
Cancel
Save