Orchard/src/Orchard.Web/Modules/Orchard.MediaLibrary/Views/Parts/OEmbed.SummaryAdmin.cshtml
Sebastien Ros 2889d29498 Refactoring the Media Library
- Removed dependency on Orchard.Taxonomies
- Removed dependency on Orchard.Media

You will need to remove the Orchard_MediaLibrary tables and also
the Data Migration record corresponding to this module if you want to upgrade
from 1.x. You can also apply the database changes by hand, remove all the
records then use the Upgrade module to import all media.

--HG--
branch : 1.x
extra : rebase_source : 46100428d9546c3082bf65ce85d8d891543dc0a9
2013-07-02 18:10:43 -07:00

11 lines
302 B
Plaintext

@using Orchard.ContentManagement
@using Orchard.MediaLibrary.Models
@{
OEmbedPart oEmbedPart = Model.ContentPart;
var mediaPart = ((ContentItem)Model.ContentItem).As<MediaPart>();
}
<a href="@mediaPart.MediaUrl" target="_blank" class="button">
<span>@T("Preview")</span>
</a>