Skip to content

Commit

Permalink
- Hide description at todo component
Browse files Browse the repository at this point in the history
- Fix description render at view todo
- Fix todo item render
- Update version 1.0.1
  • Loading branch information
supanadit committed Jun 28, 2020
1 parent ea7812e commit 6c73b57
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions resources/views/home.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@
<h4 class="modal-title" id="todo-view-modal-title"></h4>
</div>
<div class="modal-body">
<dl>
<dt>Description</dt>
<dd id="todo-view-modal-description"></dd>
</dl>
<b>Description</b>
<p id="todo-view-modal-description" style="width:100%;word-wrap: break-word;"></p>
<div>
<b>Todo Item List</b>
<div class="pull-right">
Expand All @@ -128,9 +126,9 @@
<table class="table table-condensed table-hover">
<thead>
<tr>
<th>Name</th>
<th style="width: 65%;">Name</th>
<th>Status</th>
<th style="width: 90px;">Action</th>
<th>Action</th>
</tr>
</thead>
<tbody id="todo-view-modal-table-body"></tbody>
Expand Down Expand Up @@ -282,13 +280,11 @@
}
const todoComponent = function (t) {
const description = (t.description != null ? (t.description.length > 20) ? t.description.substring(0, 20).concat("...") : t.description : "");
const todoData = "<div class=\"col-md-4 col-sm-6 col-xs-12\">\n" +
" <div class=\"box box-widget widget-user\">\n" +
" <!-- Add the bg color to the header using any of the bg-* classes -->\n" +
" <div class=\"widget-user-header bg-aqua-active\">\n" +
" <h3 class=\"widget-user-username\">" + t.name + "</h3>\n" +
" <h5 class=\"widget-user-desc\">" + description + "</h5>\n" +
" </div>\n" +
" </div>\n" +
" </div>";
Expand Down
2 changes: 1 addition & 1 deletion resources/views/layout/admin.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<footer class="main-footer">
<div class="container">
<div class="pull-right hidden-xs">
<b>Version</b> 1.0.0
<b>Version</b> 1.0.1
</div>
<strong>Copyright &copy; @php echo date('Y'); @endphp <b>Todo</b>&nbsp;<i>App</i>.</strong>
All rights
Expand Down
2 changes: 1 addition & 1 deletion resources/views/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div class="row">
<div class="col-xs-8">
<a href="/register" class="text-center">Register new account</a><br/>
Version 1.0.0
Version 1.0.1
</div>
<!-- /.col -->
<div class="col-xs-4">
Expand Down

0 comments on commit 6c73b57

Please sign in to comment.