Skip to content

Commit

Permalink
fix librarydataset model detection;
Browse files Browse the repository at this point in the history
always show dataset.message and folder.description
  • Loading branch information
martenson committed Jan 29, 2016
1 parent 88ed6e9 commit 11c5259
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions client/galaxy/scripts/mvc/library/library-folderrow-view.js
Expand Up @@ -45,7 +45,7 @@ var FolderRowView = Backbone.View.extend({
} else {
template = this.templateRowFolder();
}
} else if (folder_item.get('type') === 'file' || folder_item.get('model_class') === 'LibraryDatasetDatasetAssociation'){
} else if (folder_item.get('type') === 'file' || folder_item.get('model_class') === 'LibraryDatasetDatasetAssociation' || folder_item.get('model_class') === 'LibraryDataset'){
this.options.type = 'file';
if (folder_item.get('deleted')){
template = this.templateRowDeletedFile();
Expand Down Expand Up @@ -271,7 +271,7 @@ var FolderRowView = Backbone.View.extend({
tmpl_array.push(' </td>');
tmpl_array.push(' <td style="text-align: center; "><input style="margin: 0;" type="checkbox"></td>');
tmpl_array.push(' <td><a href="#folders/<%- content_item.get("folder_id") %>/datasets/<%- content_item.id %>" class="library-dataset"><%- content_item.get("name") %><a></td>'); // dataset
tmpl_array.push(' <td></td>');
tmpl_array.push(' <td><%- content_item.get("message") %></td>');
tmpl_array.push(' <td><%= _.escape(content_item.get("file_ext")) %></td>'); // data type
tmpl_array.push(' <td><%= _.escape(content_item.get("file_size")) %></td>'); // size
tmpl_array.push(' <td><%= _.escape(content_item.get("update_time")) %></td>'); // time updated
Expand All @@ -295,7 +295,7 @@ var FolderRowView = Backbone.View.extend({
tmpl_array.push(' </td>');
tmpl_array.push(' <td></td>');
tmpl_array.push(' <td style="color:grey;"><%- content_item.get("name") %></td>'); // dataset
tmpl_array.push(' <td></td>');
tmpl_array.push(' <td><%- content_item.get("message") %></td>');
tmpl_array.push(' <td><%= _.escape(content_item.get("file_ext")) %></td>'); // data type
tmpl_array.push(' <td><%= _.escape(content_item.get("file_size")) %></td>'); // size
tmpl_array.push(' <td><%= _.escape(content_item.get("update_time")) %></td>'); // time updated
Expand All @@ -316,7 +316,7 @@ var FolderRowView = Backbone.View.extend({
tmpl_array.push(' <td style="color:grey;">');
tmpl_array.push(' <%- content_item.get("name") %>');
tmpl_array.push(' </td>');
tmpl_array.push(' <td></td>');
tmpl_array.push(' <td><%- content_item.get("description") %></td>');
tmpl_array.push(' <td>folder</td>');
tmpl_array.push(' <td></td>');
tmpl_array.push(' <td><%= _.escape(content_item.get("update_time")) %></td>'); // time updated
Expand Down
2 changes: 1 addition & 1 deletion static/maps/mvc/library/library-folderrow-view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 11c5259

Please sign in to comment.