Only show expiry date and time on pastes that expire

This commit is contained in:
Les De Ridder 2016-05-30 22:02:18 +02:00
parent 9297dca6a3
commit 548afab212
1 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,8 @@
font-weight: 300; font-weight: 300;
font-size: 12px; font-size: 12px;
margin-bottom: 5px; margin-bottom: 5px;
user-select: none;
-webkit-user-select: none;
} }
pre { pre {
@ -45,7 +47,11 @@
</head> </head>
<body> <body>
<header> <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> </header>
<section> <section>
{!! $content !!} {!! $content !!}