Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.64 KB | None | 0 0
  1. @model ProjectExplorer.Web.ViewModels.ProjectDetailViewModel
  2. @{
  3. }
  4. <section id="imagery">
  5. <h3>Project Imagery</h3>
  6. @if (@Model.OpenAssetImagesVm.OpenAssetImages.Any())
  7. {
  8. <a href="@Model.OpenAssetImagesVm.OpenAssetProjectURL" target="_blank">Click here to find, share and download more digital assets</a>
  9. }
  10. <!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
  11. <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
  12. <!-- The container for the modal slides -->
  13. <div class="slides"></div>
  14. <!-- The modal dialog, which will be used to wrap the lightbox content -->
  15. <div class="modal fade">
  16. <div class="modal-dialog">
  17. <div class="modal-content">
  18. <div class="modal-header">
  19. <button type="button" class="close" aria-hidden="true">&times;</button>
  20. <h4 class="modal-title"></h4>
  21. </div>
  22. <div class="modal-body next" style="max-height: 500px; min-height: 400px;"></div>
  23. <div class="modal-footer">
  24. <button type="button" class="btn btn-default pull-left prev">
  25. <i class="glyphicon glyphicon-chevron-left"></i>
  26. Previous
  27. </button>
  28. <button type="button" class="btn btn-primary" onclick="location.href = '@Model.OpenAssetImagesVm.OpenAssetProjectURL';">
  29. Info
  30. <i class="glyphicon glyphicon-download-alt"></i>
  31. </button>
  32. <button type="button" class="btn btn-primary next">
  33. Next
  34. <i class="glyphicon glyphicon-chevron-right"></i>
  35. </button>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. @if (Model.OpenAssetImagesVm.OpenAssetImages.Any())
  42. {
  43. <div style="margin-top: 17px;">
  44. <div id="links">
  45. @foreach (var item in Model.OpenAssetImagesVm.OpenAssetImages)
  46. {
  47. <a href="@item.URL" title="@item.FileName" data-gallery>
  48. <img src="@item.Thumbnail" alt="@item.FileName" class="img-thumbnail" style="margin-bottom:7px;" />
  49. </a>
  50. }
  51. </div>
  52. </div>
  53. }
  54. else
  55. {
  56. <p>There are no images assigned to this project in OpenAsset.</p>
  57. }
  58. <div>
  59. @{
  60. var grid = new WebGrid(
  61. canPage: false,
  62. canSort: false,
  63. ajaxUpdateContainerId: "grid");
  64.  
  65. grid.Bind(Model.OpenAssetImagesVm.OpenAssetImages, autoSortAndPage: false);
  66.  
  67. @grid.GetHtml(htmlAttributes: new { id = "grid" },
  68. fillEmptyRows: false,
  69. mode: WebGridPagerModes.All,
  70. columns: grid.Columns());
  71. }
  72. </div>
  73. </section>
  74.  
  75. <button type="button" class="btn btn-primary" onclick="location.href = '@Model.OpenAssetImagesVm.OpenAssetProjectURL';">
  76.  
  77. @model ProjectExplorer.Web.ViewModels.ProjectDetailViewModel
  78. @{
  79. int i = 0;
  80. }
  81. <section id="imagery">
  82. <h3>Project Imagery</h3>
  83. @if (@Model.OpenAssetImagesVm.OpenAssetImages.Any())
  84. {
  85. <a href="@Model.OpenAssetImagesVm.OpenAssetProjectURL" target="_blank">Click here to find, share and download more digital assets</a>
  86. }
  87. <!-- The Bootstrap Image Gallery lightbox, should be a child element of the document body -->
  88. <div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls">
  89. <!-- The container for the modal slides -->
  90. <div class="slides"></div>
  91. <!-- The modal dialog, which will be used to wrap the lightbox content -->
  92. <div class="modal fade">
  93. <div class="modal-dialog">
  94. <div class="modal-content">
  95. <div class="modal-header">
  96. <button type="button" class="close" aria-hidden="true">&times;</button>
  97. <h4 class="modal-title"></h4>
  98. </div>
  99. <div class="modal-body next" style="max-height: 500px; min-height: 400px;"></div>
  100. <div class="modal-footer">
  101. <button type="button" class="btn btn-default pull-left prev">
  102. <i class="glyphicon glyphicon-chevron-left"></i>
  103. Previous
  104. </button>
  105. <button type="button" class="btn btn-primary" onclick="location.href = '@Model.OpenAssetImagesVm.OpenAssetImages[i].InfoURL'";>
  106. Info
  107. <i class="glyphicon glyphicon-download-alt"></i>
  108. </button>
  109. <button type="button" class="btn btn-primary next">
  110. Next
  111. <i class="glyphicon glyphicon-chevron-right"></i>
  112. </button>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. @if (Model.OpenAssetImagesVm.OpenAssetImages.Any())
  119. {
  120. <div style="margin-top: 17px;">
  121. <div id="links">
  122. @foreach (var item in Model.OpenAssetImagesVm.OpenAssetImages)
  123. {
  124. <a href="@item.URL" title="@item.FileName" data-gallery>
  125. <img src="@item.Thumbnail" alt="@item.FileName" class="img-thumbnail" style="margin-bottom:7px;" />
  126. </a>
  127. <p>@item.InfoURL</p>
  128. <p>@i++</p>
  129. i++;
  130.  
  131. }
  132. </div>
  133. </div>
  134. }
  135. else
  136. {
  137. <p>There are no images assigned to this project in OpenAsset.</p>
  138. }
  139. <div>
  140. @{
  141. var grid = new WebGrid(
  142. canPage: false,
  143. canSort: false,
  144. ajaxUpdateContainerId: "grid");
  145.  
  146. grid.Bind(Model.OpenAssetImagesVm.OpenAssetImages, autoSortAndPage: false);
  147.  
  148. @grid.GetHtml(htmlAttributes: new { id = "grid" },
  149. fillEmptyRows: false,
  150. mode: WebGridPagerModes.All,
  151. columns: grid.Columns());
  152. }
  153. </div>
  154. </section>
  155.  
  156. @Model.OpenAssetImagesVm.OpenAssetImages[i].InfoURL
  157.  
  158. @foreach (var item in Model.OpenAssetImagesVm.OpenAssetImages)
  159. {
  160. <a href="@item.URL" title="@item.FileName" data-gallery>
  161. <img src="@item.Thumbnail" alt="@item.FileName" class="img-thumbnail" style="margin-bottom:7px;" />
  162. </a>
  163. @i++;
  164. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement