add "loan" to spreadsheet and represent in UI
This commit is contained in:
		@@ -107,6 +107,10 @@
 | 
				
			|||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.bookTable .onLoan {
 | 
				
			||||||
 | 
					  color: #bbb;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.bookTable .tRow .title {
 | 
					.bookTable .tRow .title {
 | 
				
			||||||
  font-style: italic;
 | 
					  font-style: italic;
 | 
				
			||||||
  max-width: 600px;
 | 
					  max-width: 600px;
 | 
				
			||||||
@@ -134,3 +138,11 @@
 | 
				
			|||||||
#current .description p {
 | 
					#current .description p {
 | 
				
			||||||
  padding: 20px 0;
 | 
					  padding: 20px 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#current h1.onLoan {
 | 
				
			||||||
 | 
					  color: #bbb;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#current h2.onLoan {
 | 
				
			||||||
 | 
					  font-weight: bold;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -141,7 +141,7 @@
 | 
				
			|||||||
        <th class="tHeader isbn">ISBN</th>
 | 
					        <th class="tHeader isbn">ISBN</th>
 | 
				
			||||||
      </tr>
 | 
					      </tr>
 | 
				
			||||||
      {{#books}}
 | 
					      {{#books}}
 | 
				
			||||||
        <tr class="tRow" id="{{rowNumber}}">
 | 
					        <tr class="tRow {{#onLoan}}onLoan{{/onLoan}}" id="{{rowNumber}}">
 | 
				
			||||||
          <td class="title">{{title}}
 | 
					          <td class="title">{{title}}
 | 
				
			||||||
          {{#signed}}<span class="signed" title="Signed by the author">✒</span>︎{{/signed}}</td>
 | 
					          {{#signed}}<span class="signed" title="Signed by the author">✒</span>︎{{/signed}}</td>
 | 
				
			||||||
          <td class="author">{{author}}</td>
 | 
					          <td class="author">{{author}}</td>
 | 
				
			||||||
@@ -156,9 +156,9 @@
 | 
				
			|||||||
  <script id="View" type="text/html">
 | 
					  <script id="View" type="text/html">
 | 
				
			||||||
    {{#book}}
 | 
					    {{#book}}
 | 
				
			||||||
      {{#coverurl}}
 | 
					      {{#coverurl}}
 | 
				
			||||||
        <img src="{{coverurl}}"/>
 | 
					      <img src="{{coverurl}}"/>
 | 
				
			||||||
      {{/coverurl}}
 | 
					      {{/coverurl}}
 | 
				
			||||||
      <h1>{{title}}</h1>
 | 
					      <h1 {{#onLoan}}class="onLoan" {{/onLoan}}>{{title}}</h1>
 | 
				
			||||||
      <h2>{{author}}</h2>
 | 
					      <h2>{{author}}</h2>
 | 
				
			||||||
      <span>{{isbn-13}}</span><br/>
 | 
					      <span>{{isbn-13}}</span><br/>
 | 
				
			||||||
      <span>{{publisher}}, {{year}}</span><br/>
 | 
					      <span>{{publisher}}, {{year}}</span><br/>
 | 
				
			||||||
@@ -169,6 +169,9 @@
 | 
				
			|||||||
        <span>Signed by the author ✒</span><br/>
 | 
					        <span>Signed by the author ✒</span><br/>
 | 
				
			||||||
      {{/signed}}
 | 
					      {{/signed}}
 | 
				
			||||||
      <span>{{format}}</span>
 | 
					      <span>{{format}}</span>
 | 
				
			||||||
 | 
					      {{#onLoan}}
 | 
				
			||||||
 | 
					      <h2 class="onLoan">On loan to {{onLoan}}</h2>
 | 
				
			||||||
 | 
					      {{/onLoan}}
 | 
				
			||||||
      <div class="description">
 | 
					      <div class="description">
 | 
				
			||||||
        <p>{{description}}</p>
 | 
					        <p>{{description}}</p>
 | 
				
			||||||
        {{#notes}}
 | 
					        {{#notes}}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user