Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
55 lines (53 sloc) 1.86 KB
@{
// Copyright 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
}
@model GoogleCloudSamples.Models.Book
<h3>Book</h3>
<form method="post" action="/Books/Delete/@Model.Id"
id="deleteForm">
@Html.AntiForgeryToken()
<div class="btn-group">
<a href="/Books/Edit/@Model.Id"
class="btn btn-primary btn-sm">
<i class="glyphicon glyphicon-edit"></i>
Edit book
</a>
<button id="submit" type="submit" class="btn btn-danger btn-sm">
<i class="glyphicon glyphicon-trash"></i>
Delete book
</button>
</div>
</form>
<div class="media">
<div class="media-left">
<!-- [START bookimage] -->
<img class="book-image"
src="@(String.IsNullOrEmpty(Model.ImageUrl) ?
"http://placekitten.com/g/128/192" : Model.ImageUrl)">
<!-- [END bookimage] -->
</div>
<div class="media-body">
<h4 class="book-title">
@Model.Title
<small>@(Model.PublishedDate.HasValue ? Model.PublishedDate.Value.ToString("d") : null)</small>
</h4>
<h5 class="book-author">
By @(String.IsNullOrEmpty(Model.Author) ?
"Unknown" : Model.Author)
</h5>
<p class="book-description">@Model.Description</p>
</div>
</div>
You can’t perform that action at this time.