Multiple new lang codes added
This commit is contained in:
parent
a734d32c4e
commit
dd8e79c20d
3 changed files with 19 additions and 9 deletions
File diff suppressed because one or more lines are too long
|
@ -11,7 +11,7 @@
|
|||
<div class="col-md-6 procolor">
|
||||
<h4 class="media-heading headcolor">{$user.username}</h4>
|
||||
<b>{lang code='since:'}</b> ({$user.doj|date_format})
|
||||
<b>{lang code='last_Login:'}</b> ({$user.last_logged|nicetime})
|
||||
<b>{lang code='last_Login'}:</b> ({$user.last_logged|nicetime})
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -51,11 +51,11 @@
|
|||
<span class="maccountlabels"> <strong>{$video.date_added|niceTime}</strong>
|
||||
{lang code='views'} : <strong>{$video.views|number_format}</strong></span>
|
||||
<div class="labels">
|
||||
{if $video.featured=='yes'}<span class="label label-primary">Featured{else}{/if}</span>
|
||||
{if $video.featured=='yes'}<span class="label label-primary">{lang code="featured"}{/if}</span>
|
||||
<span class="label {if $video.active=='yes'}label-success{else}label-warning{/if} mlabel">
|
||||
{if $video.active=='yes'}Active{else}InActive{/if}</span>
|
||||
{if $video.active=='yes'}{lang code="active"}{else}{lang code="inactive"}{/if}</span>
|
||||
<span class="label {if $video.status=='Successful'}label-success{else}label-warning{/if}">
|
||||
{if $video.status=='Successful'}Successful{else}Processing{/if}</span>
|
||||
{if $video.status=='Successful'}{lang code="successful"}{else}{lang code="processing"}{/if}</span>
|
||||
<span class="label label-info">
|
||||
Viewed {$video.last_viewed|niceTime}</span>
|
||||
</div>
|
||||
|
@ -80,14 +80,14 @@
|
|||
Actions <i class="caret"></i></button>
|
||||
<ul class="dropdown-menu pull-right" aria-labelledby="dropdownMenu1" role="menu">
|
||||
<li><a role="menuitem" tabindex="-1"
|
||||
href="{$baseurl}/edit_video.php?vid={$video.videoid}" class="">Edit</a></li>
|
||||
href="{$baseurl}/edit_video.php?vid={$video.videoid}" class="">{lang code="edit_video"}</a></li>
|
||||
<li><a role="menuitem" tabindex="-1"
|
||||
href="{$baseurl}/watch_video.php?v={$video.videokey}"target="_blank">Watch</a>
|
||||
href="{$baseurl}/watch_video.php?v={$video.videokey}"target="_blank">{lang code="Watch"}</a>
|
||||
|
||||
|
||||
|
||||
<li class="divider"></li>
|
||||
<li><a role="menuitem" tabindex="-1" href="{$baseurl}/myaccount.php?delete_video={$video.videoid}">Delete</a>
|
||||
<li><a role="menuitem" tabindex="-1" href="{$baseurl}/myaccount.php?delete_video={$video.videoid}">{lang code="delete"}</a>
|
||||
</li>
|
||||
{foreach from=$cbvid->video_manager_links item=links}
|
||||
{$cbvid->video_manager_link($links,$video)}
|
||||
|
|
|
@ -170,6 +170,10 @@
|
|||
plFileId = fileNow.id;
|
||||
//<button class="clearfix cancel_button btn btn-danger" style="float:right; margin-top: -20px">Cancel Uploading</button>
|
||||
|
||||
// appends progress bar along with title
|
||||
// this progress bar is later updated on realtime
|
||||
// via fileprogress event of pluploader
|
||||
|
||||
$(".realProgressBars").append('<h5 class="realProgTitle_'+plFileId+'">'+currentTitle+'</h5><button class="clearfix cancel_button btn btn-danger" to_cancel="'+plFileId+'" style="float:right; margin-top: -8px; margin-left:10px;">Cancel Uploading</button><div class="progress"><div class="progress-bar progress-bar_'+plFileId+'" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width:0%"><span class="sr-only">70% Complete</span><span class="realProgText_'+plFileId+'">50% completed</span></div></div>');
|
||||
|
||||
|
||||
|
@ -365,16 +369,22 @@
|
|||
|
||||
});
|
||||
|
||||
// runs on progress of file uplaoder
|
||||
|
||||
uploader.bind('UploadProgress', function(up, file) {
|
||||
// this the unique ID assigned to each file upload
|
||||
var pluploadFileId = file.id,
|
||||
filePercentage = file.percent;
|
||||
console.log(filePercentage);
|
||||
// update progress bar widht
|
||||
$('.progress-bar_'+pluploadFileId).css("width",filePercentage+"%");
|
||||
//updawte progress bar text to show percentage
|
||||
$('.realProgText_'+pluploadFileId).text(filePercentage+"% Completed");
|
||||
|
||||
// meaning file has completely uploaded
|
||||
if (filePercentage == 100) {
|
||||
// remove cancel button
|
||||
$(".cancel_button[to_cancel='" + pluploadFileId + "']").fadeOut('slow');
|
||||
// tunr progress bar into green to show success
|
||||
$('.progress-bar_'+pluploadFileId).addClass('progress-bar-success');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue