1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-11-09 11:42:28 +01:00

Merge branch 'overint-urlfix'

This commit is contained in:
Chaoyi Zha 2016-12-29 15:00:10 -05:00
commit 91b9def4aa

View File

@ -113,7 +113,8 @@ class AdminPaginationController extends Controller {
Delete
</a>';
})
->escapeColumns(['short_url', 'long_url', 'creator'])
->editColumn('long_url', '<a target="_blank" title="{{ $long_url }}" href="{{ $long_url }}">{{ str_limit($long_url, 50) }}</a>')
->escapeColumns(['short_url', 'creator'])
->make(true);
}
@ -125,7 +126,8 @@ class AdminPaginationController extends Controller {
->select(['short_url', 'long_url', 'clicks', 'created_at']);
return Datatables::of($user_links)
->escapeColumns()
->editColumn('long_url', '<a target="_blank" title="{{ $long_url }}" href="{{ $long_url }}">{{ str_limit($long_url, 50) }}</a>')
->escapeColumns(['short_url'])
->make(true);
}
}