From 548afab212cf99c86fb7b09d96bb16e1a20b9451 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Mon, 30 May 2016 22:02:18 +0200 Subject: [PATCH] Only show expiry date and time on pastes that expire --- resources/views/paste/available.blade.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/views/paste/available.blade.php b/resources/views/paste/available.blade.php index 688a778..5f7b2a2 100644 --- a/resources/views/paste/available.blade.php +++ b/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 @@
- {{ $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
{!! $content !!}