update text strings

This commit is contained in:
Zachary Chai 2016-11-18 13:59:20 -05:00
parent b8ec40c35f
commit 6620df9c65
4 changed files with 21 additions and 11 deletions

View File

@ -13,14 +13,14 @@ class @Recordings
info: false, info: false,
order: [[ 0, "desc" ]], order: [[ 0, "desc" ]],
language: { language: {
emptyTable: " " emptyTable: I18n.no_recordings
}, },
columns: [ columns: [
{ data: "start_time" }, { data: "start_time" },
{ data: "previews" }, { data: "previews", orderable: false },
{ data: "duration" }, { data: "duration" },
{ data: "playbacks" }, { data: "playbacks", orderable: false },
{ data: "id" } { data: "id", orderable: false }
], ],
columnDefs: [ columnDefs: [
{ {
@ -61,7 +61,7 @@ class @Recordings
roomName = Meeting.getInstance().getId() roomName = Meeting.getInstance().getId()
published = row.published published = row.published
icon = getPublishClass(published) icon = getPublishClass(published)
publishText = if published then 'publish' else 'unpublish' publishText = if published then 'unpublish' else 'publish'
recordingActions = $('.hidden-elements').find('.recording-actions') recordingActions = $('.hidden-elements').find('.recording-actions')
recordingActions.find('.recording-update > i') recordingActions.find('.recording-update > i')
.removeClass() .removeClass()
@ -74,6 +74,13 @@ class @Recordings
} }
] ]
}) })
options = {
selector: '.delete-tooltip',
container: 'body',
placement: 'bottom',
title: I18n.delete_recording
};
$('#recordings').tooltip(options);
# Gets the current instance or creates a new one # Gets the current instance or creates a new one
@getInstance: -> @getInstance: ->

View File

@ -25,6 +25,9 @@
content: none; //removes the sort icon in table header content: none; //removes the sort icon in table header
} }
} }
.dataTables_empty {
text-align: center;
}
} }
} }

View File

@ -14,7 +14,6 @@
</div> </div>
<div class="table-wrapper"> <div class="table-wrapper">
<h3><%= t('past_recordings') %></h3>
<table id="recordings" class="table" width="100%"> <table id="recordings" class="table" width="100%">
<thead> <thead>
<th><%= t('date_recorded') %></th> <th><%= t('date_recorded') %></th>
@ -49,8 +48,8 @@
<button type="button" class="btn btn-default recording-update bottom-tooltip" data-published=""> <button type="button" class="btn btn-default recording-update bottom-tooltip" data-published="">
<i class="fa" aria-hidden="true"></i> <i class="fa" aria-hidden="true"></i>
</button> </button>
<a tabindex="0" role="button" class="btn btn-default has-popover bottom-tooltip" <a tabindex="0" role="button" class="btn btn-default has-popover delete-tooltip"
data-placement="top" title="<%= t('delete_recording') %>"> data-placement="top">
<i class="fa fa-trash-o" aria-hidden="true"></i> <i class="fa fa-trash-o" aria-hidden="true"></i>
</a> </a>
</div> </div>

View File

@ -24,16 +24,18 @@ en-US:
are_you: Are you %{name}? are_you: Are you %{name}?
client: client:
are_you_sure: Are you sure? are_you_sure: Are you sure?
delete_recording: Delete recording
meeting_ended: Meeting was ended meeting_ended: Meeting was ended
meeting_started: Meeting was started meeting_started: Meeting was started
no_recordings: No recordings
publish_recording: Publish recording publish_recording: Publish recording
recording_deleted: Recording was deleted recording_deleted: Recording was deleted
recording_published: Recording was published recording_published: Recording was published
recording_unpublished: Recording was unpublished recording_unpublished: Recording was unpublished
unpublish_recording: Unpublish recording unpublish_recording: Hide recording
copied: Copied copied: Copied
copy_error: Use Ctrl-c to copy copy_error: Use Ctrl-c to copy
date_recorded: Date Recorded date_recorded: Date
duration: Duration duration: Duration
end: End end: End
enter_name: Enter your name enter_name: Enter your name
@ -52,7 +54,6 @@ en-US:
powered_bigbluebutton: Powered by BigBlueButton powered_bigbluebutton: Powered by BigBlueButton
presentation: Presentation presentation: Presentation
refresh_html: <a href="#" class="generate-link">Click refresh</a> to generate a new meeting URL refresh_html: <a href="#" class="generate-link">Click refresh</a> to generate a new meeting URL
delete_recording: Delete recording
session_url_explanation: The session will be taking place using the following URL session_url_explanation: The session will be taking place using the following URL
start: Start start: Start
start_new_session: Start a new session start_new_session: Start a new session