mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00

- 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
11 lines
302 B
Plaintext
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>
|