Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravel_IS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
odlai
laravel_IS
Commits
4d19375e
Commit
4d19375e
authored
Oct 12, 2019
by
odlai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
if empty content[ports]
parent
4f6195de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
service.blade.php
resources/views/service.blade.php
+13
-2
No files found.
resources/views/service.blade.php
View file @
4d19375e
...
...
@@ -19,12 +19,16 @@
@foreach($contents as $content)
<tr>
<form
method=
"post"
action=
"{{route('api')}}"
>
<input
type =
"hidden"
name =
"_token"
value =
"
<?php
echo
csrf_token
();
?>
"
>
<input
type =
"hidden"
name =
"_token"
value =
"
<?php
echo
csrf_token
();
?>
"
>
<td>
{{$content['Names'][0]}}
</td>
<td>
{{$content['State']}}
</td>
@if(empty($content['Ports'][0]['PrivatePort']))
<td></td>
@else
<td>
{{$content['Ports'][0]['PrivatePort']}}:{{$content['Ports'][0]['PublicPort']}}
</td>
@endif
<td>
{{$content['Status']}}
</td>
<td>
{{
$content['Created']}}
</td
>
<td>
{{
date('Y-m-d H:i:s',$content['Created'])}}
</td>
<!--timestamp to date--
>
<td>
<input
type =
"hidden"
name =
"id"
value =
"{{$content['Id']}}"
>
<button
type=
"submit"
class=
"btn btn-Success"
name=
"btn"
value=
"start"
>
啟動
</button>
...
...
@@ -37,6 +41,13 @@
</tbody>
</table>
<!-- </form> -->
<ul
class=
"pagination justify-content-center"
style=
"margin:20px 0"
>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
Previous
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
1
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
2
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
3
</a></li>
<li
class=
"page-item"
><a
class=
"page-link"
href=
"#"
>
Next
</a></li>
</ul>
<p>
Note that we start the search in tbody, to prevent filtering the table headers.
</p>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment