forked from External/greenlight
		
	swap visbility and watch columns
This commit is contained in:
		@@ -37,8 +37,8 @@ class @Recordings
 | 
				
			|||||||
        { data: "name", visible: $(".page-wrapper.rooms").data('main-room') },
 | 
					        { data: "name", visible: $(".page-wrapper.rooms").data('main-room') },
 | 
				
			||||||
        { data: "previews", orderable: false },
 | 
					        { data: "previews", orderable: false },
 | 
				
			||||||
        { data: "duration", orderable: false },
 | 
					        { data: "duration", orderable: false },
 | 
				
			||||||
        { data: "published" },
 | 
					 | 
				
			||||||
        { data: "playbacks", orderable: false },
 | 
					        { data: "playbacks", orderable: false },
 | 
				
			||||||
 | 
					        { data: "published" },
 | 
				
			||||||
        { data: "listed", visible: false },
 | 
					        { data: "listed", visible: false },
 | 
				
			||||||
        { data: "id", orderable: false }
 | 
					        { data: "id", orderable: false }
 | 
				
			||||||
      ],
 | 
					      ],
 | 
				
			||||||
@@ -69,6 +69,17 @@ class @Recordings
 | 
				
			|||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          targets: 4,
 | 
					          targets: 4,
 | 
				
			||||||
 | 
					          render: (data, type, row) ->
 | 
				
			||||||
 | 
					            if type == 'display'
 | 
				
			||||||
 | 
					              str = ''
 | 
				
			||||||
 | 
					              if row.published
 | 
				
			||||||
 | 
					                for d in data
 | 
				
			||||||
 | 
					                  str += '<a href="'+d.url+'" target="_blank">'+d.type_i18n+'</a> '
 | 
				
			||||||
 | 
					              return str
 | 
				
			||||||
 | 
					            return data
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					          targets: 5,
 | 
				
			||||||
          render: (data, type, row) ->
 | 
					          render: (data, type, row) ->
 | 
				
			||||||
            visibility = ['unpublished', 'unlisted', 'published']
 | 
					            visibility = ['unpublished', 'unlisted', 'published']
 | 
				
			||||||
            if row.published
 | 
					            if row.published
 | 
				
			||||||
@@ -81,17 +92,6 @@ class @Recordings
 | 
				
			|||||||
            if type == 'display'
 | 
					            if type == 'display'
 | 
				
			||||||
              return I18n[state]
 | 
					              return I18n[state]
 | 
				
			||||||
            return state
 | 
					            return state
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
        {
 | 
					 | 
				
			||||||
          targets: 5,
 | 
					 | 
				
			||||||
          render: (data, type, row) ->
 | 
					 | 
				
			||||||
            if type == 'display'
 | 
					 | 
				
			||||||
              str = ''
 | 
					 | 
				
			||||||
              if row.published
 | 
					 | 
				
			||||||
                for d in data
 | 
					 | 
				
			||||||
                  str += '<a href="'+d.url+'" target="_blank">'+d.type_i18n+'</a> '
 | 
					 | 
				
			||||||
              return str
 | 
					 | 
				
			||||||
            return data
 | 
					 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          targets: -1,
 | 
					          targets: -1,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -41,8 +41,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
 | 
				
			|||||||
          <th><%= t('meeting') %></th>
 | 
					          <th><%= t('meeting') %></th>
 | 
				
			||||||
          <th><%= t('thumbnails') %></th>
 | 
					          <th><%= t('thumbnails') %></th>
 | 
				
			||||||
          <th><%= t('duration') %></th>
 | 
					          <th><%= t('duration') %></th>
 | 
				
			||||||
          <th><%= t('visibility') %></th>
 | 
					 | 
				
			||||||
          <th><%= t('watch') %></th>
 | 
					          <th><%= t('watch') %></th>
 | 
				
			||||||
 | 
					          <th><%= t('visibility') %></th>
 | 
				
			||||||
          <th>published</th>
 | 
					          <th>published</th>
 | 
				
			||||||
          <th><%= t('actions') %></th>
 | 
					          <th><%= t('actions') %></th>
 | 
				
			||||||
        </thead>
 | 
					        </thead>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user