From 739bff4633ec09002cc648a8a0f25898ffd31763 Mon Sep 17 00:00:00 2001
From: printempw
Date: Sun, 6 Nov 2016 11:48:31 +0800
Subject: [PATCH] add id for register buttons at homepage
---
resources/views/index.tpl | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/resources/views/index.tpl b/resources/views/index.tpl
index b0ec5227..c095bfb6 100644
--- a/resources/views/index.tpl
+++ b/resources/views/index.tpl
@@ -85,7 +85,11 @@
@if (is_null($user))
- {{ trans('general.register') }}
+ @if (option('user_can_register'))
+ {{ trans('general.register') }}
+ @else
+ {{ trans('general.login') }}
+ @endif
@else
{{ trans('general.user-center') }}
@endif