-
Notifications
You must be signed in to change notification settings - Fork 58
/
index.html
548 lines (494 loc) · 24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
<!doctype html>
<html>
<head>
<title>Stardew Valley Crop Planner</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/favicon.png" type="image/png">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="scripts/checklist-model.js"></script>
<script src="scripts/planner.js"></script>
</head>
<body ng-app="planner_app" ng-controller="planner_controller as self" ng-class="{'sidebar_open': self.sidebar.mode != ''}">
<!-- [HEADER] -->
<header>
<img src="images/logo.png" class="logo">
<div class="page_title">Crop Planner</div>
</header>
<!-- [/HEADER] -->
<!-- [CONTENT] -->
<div id="content" class="container">
<div ng-show="!self.loaded" class="loading">
<i class="fa fa-circle-o-notch fa-spin"></i>
Loading...
</div>
<div ng-show="self.loaded" ng-cloak>
<!-- [TOP_MENU] -->
<nav id="top_menu" class="row">
<div class="col-md-3 col-xs-12 year_navigation">
<div class="btn-group sn_arrows">
<div class="btn btn-default" ng-click="self.inc_year(-1)"><i class="fa fa-chevron-left"></i></div>
<div class="btn btn-default" ng-click="self.inc_year(1)"><i class="fa fa-chevron-right"></i></div>
</div>
<div class="farm_picker">
<div class="btn btn-default" ng-click="self.toggle_mode()">
<img ng-src="{{self.cfarm().get_image()}}">
</div>
</div>
<div class="year_info">
<div class="yi_name">Year {{self.cyear.index+1}}, {{self.cseason.name}}</div>
<div class="yi_farmtype">{{self.cmode}}</div>
</div>
</div>
<div class="col-md-6 col-xs-8">
<div class="season_stats">
<table class="table table-striped">
<tbody>
<tr>
<th width="25%"><i class="fa fa-fw fa-tint"></i> Planted</th>
<td>{{self.cfarm().totals.season[self.cseason.index].get_plantings(1)}}</td>
<th width="25%"><i class="fa fa-fw fa-pagelines"></i> Harvests</th>
<td>{{self.cfarm().totals.season[self.cseason.index].get_harvests(1)}}</td>
</tr>
<tr>
<th width="25%"><i class="fa fa-fw fa-bar-chart"></i> Profit</th>
<td colspan="3">
<div class="profit min" ng-show="self.cfarm().totals.season[self.cseason.index].profit.min==self.cfarm().totals.season[self.cseason.index].profit.max">
<div>{{self.cfarm().totals.season[self.cseason.index].profit.min>0 && '+' || ''}}{{self.cfarm().totals.season[self.cseason.index].get_profit(1)}}g</div>
</div>
<div class="profit" ng-show="self.cfarm().totals.season[self.cseason.index].profit.min!=self.cfarm().totals.season[self.cseason.index].profit.max">
<span>{{self.cfarm().totals.season[self.cseason.index].profit.min>0 && '+' || ''}}{{self.cfarm().totals.season[self.cseason.index].get_profit(1)}}g</span>
<i class="asc_icon fa fa-sort-amount-asc fa-rotate-270"></i>
<span>{{self.cfarm().totals.season[self.cseason.index].profit.max>0 && '+' || ''}}{{self.cfarm().totals.season[self.cseason.index].get_profit(1, 1)}}g</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="col-md-2 col-md-offset-1 col-xs-4 clear_buttons">
<div class="btn btn-default btn-block" ng-click="self.clear_season(self.cseason)"><i class="fa fa-calendar"></i> Clear {{self.cseason.name}}</div>
<div class="btn btn-default btn-block" ng-click="self.clear_year(self.cyear)"><i class="fa fa-trash"></i> Clear Year</div>
</div>
</nav>
<!-- [/TOP_MENU] -->
<!-- [SEASON_PICKER] -->
<div id="season_picker" class="row">
<div class="col-xs-3" ng-repeat="season in self.seasons">
<div class="season" ng-class="{'active': season.id==self.cseason.id}" ng-click="self.set_season(season.index)">
<img ng-src="{{season.get_image()}}" class="image">
<div class="name">{{season.name}}</div>
<div class="profit min hidden-xs" ng-show="self.cfarm().totals.season[season.index].profit.min==self.cfarm().totals.season[season.index].profit.max">
<div>{{self.cfarm().totals.season[season.index].profit.min>0 && '+' || ''}}{{self.cfarm().totals.season[season.index].get_profit(1)}}g</div>
</div>
<div class="profit hidden-xs" ng-show="self.cfarm().totals.season[season.index].profit.min!=self.cfarm().totals.season[season.index].profit.max">
<i class="asc_icon fa fa-sort-amount-asc"></i>
<div>{{self.cfarm().totals.season[season.index].profit.min>0 && '+' || ''}}{{self.cfarm().totals.season[season.index].get_profit(1)}}g</div>
<div>{{self.cfarm().totals.season[season.index].profit.max>0 && '+' || ''}}{{self.cfarm().totals.season[season.index].get_profit(1, 1)}}g</div>
</div>
</div>
</div>
</div>
<!-- [/SEASON_PICKER] -->
<!-- [CALENDAR] -->
<div id="calendar">
<div class="day_names">
<div class="day_name">M</div>
<div class="day_name">T</div>
<div class="day_name">W</div>
<div class="day_name">Th</div>
<div class="day_name">F</div>
<div class="day_name">Sa</div>
<div class="day_name">Su</div>
</div>
<div class="day_container">
<div class="day" ng-repeat="date in self.days | limitTo:self.SEASON_DAYS:self.cseason.start-1" ng-click="self.open_plans(date)" ng-class="{'filled': self.cfarm().plans[date].length || self.cfarm().harvests[date].length}">
<div class="date_top">
<div class="date">
<span class="visible-xs">{{self.get_date(date, '%j%S - %l')}}</span>
<span class="hidden-xs">{{date%self.SEASON_DAYS>0 && date%self.SEASON_DAYS || self.SEASON_DAYS}}</span>
</div>
<div class="event" ng-show="self.events[date] && self.player.settings.show_events" title="{{self.events[date].get_text()}}">
<img ng-src="{{self.events[date].get_image()}}">
<span>{{self.events[date].get_text()}}</span>
</div>
</div>
<div ng-show="self.cfarm().plans[date].length" class="items">
<div class="planting">
<div class="plan" ng-repeat="plan in self.cfarm().plans[date] | limitTo:4">
<img ng-src="{{plan.crop.get_image(1)}}">
<div class="amount">x{{plan.amount}}</div>
</div>
</div>
<div class="more" ng-show="self.cfarm().plans[date].length > 4">{{self.cfarm().plans[date].length-4}} more...</div>
</div>
<div ng-show="self.cfarm().harvests[date].length">
<div class="harvesting">
<div class="plan" ng-repeat="harvest in self.cfarm().harvests[date] | limitTo:4">
<img ng-src="{{harvest.crop.get_image()}}">
<div class="amount">x{{harvest.yield.min}}</div>
</div>
</div>
<div class="more" ng-show="self.cfarm().harvests[date].length > 4">{{self.cfarm().harvests[date].length-4}} more...</div>
</div>
<div ng-show="self.cfarm().totals.day[date].profit.min || self.cfarm().totals.day[date].profit.max">
<div class="profit min" ng-show="self.cfarm().totals.day[date].profit.min==self.cfarm().totals.day[date].profit.max">
<div>{{self.cfarm().totals.day[date].profit.min>0 && '+' || ''}}{{self.cfarm().totals.day[date].get_profit(1)}}g</div>
</div>
<div class="profit" ng-show="self.cfarm().totals.day[date].profit.min!=self.cfarm().totals.day[date].profit.max">
<i class="asc_icon fa fa-sort-amount-asc"></i>
<div>{{self.cfarm().totals.day[date].profit.min>0 && '+' || ''}}{{self.cfarm().totals.day[date].get_profit(1)}}g</div>
<div>{{self.cfarm().totals.day[date].profit.max>0 && '+' || ''}}{{self.cfarm().totals.day[date].get_profit(1, 1)}}g</div>
</div>
</div>
</div>
</div>
</div>
<!-- [/CALENDAR] -->
</div>
</div>
<!-- [/CONTENT] -->
<!-- [SIDEBAR] -->
<div id="sidebar_backdrop" ng-click="self.sidebar.close()" ng-class="{'open': self.sidebar.mode != ''}"></div>
<div id="sidebar" ng-class="{'open': self.sidebar.mode != ''}" ng-show="self.loaded" ng-cloak>
<!-- [SIDEBAR_BUTTONS] -->
<ul class="sb_buttons">
<li ng-click="self.sidebar.open('cropinfo')" ng-class="{'active': self.sidebar.mode == 'cropinfo'}" title="Crop Info">
<i class="fa fa-pagelines"></i>
</li>
<li ng-click="self.sidebar.open('settings')" ng-class="{'active': self.sidebar.mode == 'settings'}" title="Settings">
<i class="fa fa-gear"></i>
</li>
</ul>
<!-- [/SIDEBAR_BUTTONS] -->
<!-- [SIDEBAR_CONTENT] -->
<div class="sb_content">
<!-- [SB_CROP_INFO] -->
<div id="sb_cropinfo" class="panel panel-default sb_section" ng-class="{'active': self.sidebar.mode == 'cropinfo'}">
<div class="panel-heading">
<div class="back" ng-click="self.sidebar.back()"><i class="fa fa-chevron-left" ></i></div>
<h3 class="panel-title">Crop Info</h3>
</div>
<div class="panel-body">
<div ng-show="!self.sidebar.crop">
<div class="filter">
<label ng-repeat="season in self.cinfo_settings.season_options">
<input type="checkbox" checklist-model="self.cinfo_settings.seasons" checklist-value="season.id"> {{season.name}}
</label>
<br>
<label><input type="checkbox" ng-model="self.cinfo_settings.regrows"> Regrows</label>
<input type="text" class="form-control search" placeholder="Search" ng-model="self.cinfo_settings.search">
</div>
<div class="crops_container">
<label><input type="checkbox" ng-model="self.cinfo_settings.use_fbp"> Use Fixed Budget Profit</label>
<table class="table table-condensed crops">
<thead>
<tr>
<th ng-click="self.ci_set_sort('name')" colspan="2">Crop</th>
<th ng-click="self.ci_set_sort('grow')"><i class="fa fa-clock-o"></i> Days</th>
<th ng-click="self.ci_set_sort('buy')">Buy</th>
<th ng-click="self.ci_set_sort('sell')">Sell</th>
<th ng-click="self.ci_set_sort(self.cinfo_settings.use_fbp && 'fixed_profit' || 'profit')">g/day</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="crop in self.crops_list | orderBy:self.cinfo_settings.sort:self.cinfo_settings.order | filter: self.cinfo_settings.search" class="crop" ng-show="crop.can_grow(self.cinfo_settings.seasons, 1) && (!self.cinfo_settings.regrows || crop.regrow)" ng-click="self.sidebar.open_crop(crop)">
<td width="1"><img ng-src="{{crop.get_image()}}"></td>
<td class="name">
{{crop.name}}
<span class="text-muted" ng-show="crop.harvest.min>1">(x{{crop.harvest.min}})</span>
</td>
<td>{{crop.grow}}</td>
<td>{{crop.buy}}g</td>
<td>{{crop.get_sell()}}g</td>
<td>
<span ng-show="!self.cinfo_settings.use_fbp">{{crop.profit}}g</span>
<span ng-show="self.cinfo_settings.use_fbp">{{crop.fixed_profit}}g</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="crop_info" ng-show="self.sidebar.crop">
<div class="ci_header">
<img ng-src="{{self.sidebar.crop.get_image()}}">
<div class="ci_name">{{self.sidebar.crop.name}}</div>
<div class="ci_seasons">
<span ng-repeat="season in self.sidebar.crop.seasons">{{season}}{{$last ? '' : ', '}}</span>
</div>
</div>
<table class="table table-condensed">
<tr>
<th><i class="fa fa-fw fa-clock-o"></i> Grows</th>
<td>{{self.sidebar.crop.grow}} days</td>
</tr>
<tr ng-show="self.sidebar.crop.regrow">
<th><i class="fa fa-fw fa-refresh"></i> Regrows</th>
<td>{{self.sidebar.crop.regrow}} days</td>
</tr>
<tr ng-show="self.sidebar.crop.harvest.min>1">
<th><i class="fa fa-cubes"></i> Yields</th>
<td>x{{self.sidebar.crop.harvest.min}}</td>
</tr>
<tr>
<th><i class="fa fa-fw fa-minus-square"></i> Buy</th>
<td>{{self.sidebar.crop.buy}}g</td>
</tr>
<tr>
<th><i class="fa fa-fw fa-plus-square"></i> Sell</th>
<td>{{self.sidebar.crop.get_sell()}}g</td>
</tr>
<tr>
<th><i class="fa fa-fw fa-bar-chart"></i> Profit/day</th>
<td>{{self.sidebar.crop.profit}}g</td>
</tr>
<tr>
<th>
<i class="fa fa-fw fa-line-chart"></i> Fixed Budget Profit/day
<sup><a title="Description of Fixed Budget Profit on Reddit" href="https://www.reddit.com/r/StardewValley/comments/55puw1/crop_planner_v2_released_multiple_years_importing/d93smm8/" target="_blank" rel="noreferrer">[?]</a></sup>
</th>
<td>{{self.sidebar.crop.fixed_profit}}g</td>
</tr>
<tr ng-show="self.sidebar.crop.note">
<th><i class="fa fa-fw fa-exclamation-circle"></i> Note</th>
<td>{{self.sidebar.crop.note}}</td>
</tr>
</table>
<hr>
<a class="btn btn-primary" ng-href="{{self.sidebar.crop.get_url()}}" target="_blank" rel="noreferrer"><i class="fa fa-book"></i> Wiki Page</a>
</div>
</div>
</div>
<!-- [/SB_CROP_INFO] -->
<!-- [SB_SETTINGS] -->
<div id="sb_settings" class="panel panel-default sb_section" ng-class="{'active': self.sidebar.mode == 'settings'}">
<div class="panel-heading">
<div class="back" ng-click="self.sidebar.back()"><i class="fa fa-chevron-left" ></i></div>
<h3 class="panel-title">Settings</h3>
</div>
<div class="panel-body">
<div class="farm_level">
<h4>Farming Level</h4>
<label><input type="number" ng-model="self.player.level" min="0" max="10" class="form-control"></label>
<span>Base crop quality chances</span>
<div class="chance_scale">
<div class="regular" ng-style="{width: self.player.quality_chance(0, 0, true)+'%'}">
<div class="percent">{{self.player.quality_chance(0, 0, true)}}%</div>
<div class="name">Regular</div>
</div>
<div class="silver" ng-style="{width: self.player.quality_chance(1, 0, true)+'%'}">
<div class="percent">{{self.player.quality_chance(1, 0, true)}}%</div>
<div class="name">Silver</div>
</div>
<div class="gold" ng-style="{width: self.player.quality_chance(2, 0, true)+'%'}">
<div class="percent">{{self.player.quality_chance(2, 0, true)}}%</div>
<div class="name">Gold</div>
</div>
</div>
</div>
<hr>
<div class="farm_professions">
<h4>Farming Professions</h4>
<div class="btn" ng-class="{'btn-success': self.player.tiller, 'btn-default': !self.player.tiller}" ng-click="self.player.toggle_perk('tiller')" data-toggle="tooltip" title="Crops worth 10% more">
<i class="fa fa-tint"></i> Tiller
</div>
<div class="btn" ng-class="{'btn-success': self.player.agriculturist, 'btn-default': !self.player.agriculturist}" ng-click="self.player.toggle_perk('agriculturist')" data-toggle="tooltip" title="All crops grow 10% faster">
<i class="fa fa-pagelines"></i> Agriculturist
</div>
</div>
<hr>
<div>
<h4>Miscellaneous</h4>
<label><input type="checkbox" ng-model="self.player.settings.show_events"> Show events on calendar</label>
<br><br>
<div class="btn btn-default" ng-click="self.clear_all()"><i class="fa fa-trash"></i> Clear Planner</div>
</div>
<hr>
<h4>Importing & Exporting</h4>
<div class="btn btn-default" ng-click="self.sidebar.import_data()"><i class="fa fa-sign-in"></i> Import</div>
<div class="btn btn-default" ng-click="self.sidebar.export_data()"><i class="fa fa-sign-out"></i> Export</div>
<br>
<br>
<div class="btn btn-default" ng-click="self.sidebar.legacy_import_data()"><i class="fa fa-repeat"></i> Import Planner v1 Data</div>
<hr>
<a class="btn btn-primary" href="http://stardewvalleywiki.com/Stardew_Valley_Wiki" target="_blank" rel="noreferrer"><i class="fa fa-book"></i> Stardew Valley Wiki</a>
<a class="btn btn-primary" href="./v1/" target="_blank"><i class="fa fa-code-fork"></i> Crop Planner v1</a>
</div>
</div>
<!-- [/SB_SETTINGS] -->
</div>
<!-- [/SIDEBAR_CONTENT] -->
</div>
<!-- [/SIDEBAR] -->
<!-- [CROP_PLANNER_MODAL] -->
<div class="modal fade" id="crop_planner">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<div class="close" data-dismiss="modal"><i class="fa fa-times"></i></div>
<h4 class="modal-title">{{self.get_date(self.cdate, '%F  —  %l the %j%S')}}</h4>
</div>
<div class="modal-body">
<div class="plant_crop">
<div class="row">
<div class="col-md-4 col-xs-12">
<b>Plant Crop</b><br>
<select class="form-control" ng-model="self.newplan.crop_id"
ng-options="crop.id as crop.name for crop in self.crops_list | filter:self.planner_valid_crops">
</select>
</div>
<div class="col-md-2 col-xs-4">
<label>
<b>Amount</b><br>
<input class="form-control" type="text" ng-model="self.newplan.amount" ng-keypress="self.add_plan_key(self.cdate, $event)">
</label>
</div>
<div class="col-md-3 col-xs-4">
<b>Fertilizer</b><br>
<select class="form-control" ng-model="self.newplan.fertilizer" ng-options="fert as fert.name for fert in self.config.fertilizer track by fert.id">
</select>
</div>
<div class="col-md-3 col-xs-4">
<b></b><br>
<div class="btn btn-default" ng-click="self.add_plan(self.cdate)"><i class="fa fa-plus"></i> Plant</div>
<div class="btn btn-default" ng-click="self.add_plan(self.cdate, true)" data-toggle="tooltip" data-placement="bottom" title="Auto-replant on day of harvest"><i class="fa fa-calendar"></i> Autoplant</div>
</div>
</div>
<br>
</div>
<div ng-show="self.cfarm().plans[self.cdate].length">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-tint"></i> Planting</h3>
</div>
<div class="panel-body">
<table class="crops table table-condensed">
<thead>
<tr>
<th colspan="2">Crop</th>
<th>Amount</th>
<th>Fertilizer</th>
<th>Cost</th>
<th><i class="fa fa-clock-o"></i> Days</th>
<th><i class="fa fa-refresh"></i> Regrows</th>
<th width="1"></th>
<th width="1"></th>
</tr>
</thead>
<tbody>
<tr class="crop" ng-repeat="plan in self.cfarm().plans[self.cdate]">
<td width="1">
<img ng-src="{{plan.crop.get_image(1)}}">
</td>
<td>
{{plan.crop.name}}
</td>
<td>
<span ng-show="self.editplan!=plan">x{{plan.amount}}</span>
<span ng-show="self.editplan==plan">x<input style="padding-left:2px;width:100px" class="form-control" type="number" min="1" ng-model="plan.amount"></span>
</td>
<td>
<div ng-show="plan.fertilizer.id!='none' && self.editplan!=plan">
<img ng-src="{{plan.fertilizer.get_image()}}">
{{plan.fertilizer.name}}
</div>
<div ng-show="self.editplan==plan">
<select class="form-control" ng-model="plan.fertilizer" ng-options="fert as fert.name for fert in self.config.fertilizer track by fert.id"></select>
</div>
</td>
<td>-{{plan.get_cost(1)}}g</td>
<td>{{plan.get_grow_time()}}</td>
<td>{{plan.crop.regrow}}</td>
<td>
<div ng-show="self.editplan!=plan" class="btn btn-default" ng-click="self.edit_plan(plan)"><i class="fa fa-pencil"></i></div>
<div ng-show="self.editplan==plan" class="btn btn-success" ng-click="self.edit_plan(plan, 1)"><i class="fa fa-save"></i></div>
</td>
<td><div class="btn btn-default" ng-click="self.remove_plan(self.cdate, $index)"><i class="fa fa-trash"></i></div></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div ng-show="!self.cfarm().plans[self.cdate].length" class="text-muted"><i class="fa fa-tint"></i> No planting.<hr></div>
<div ng-show="self.cfarm().harvests[self.cdate].length">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><i class="fa fa-pagelines"></i> Harvesting</h3>
</div>
<div class="panel-body">
<table class="crops table table-condensed">
<thead>
<tr>
<th colspan="2">Crop</th>
<th>Yield</th>
<th>Revenue</th>
<th>Profit</th>
<th><i class="fa fa-refresh"></i> Regrows</th>
</tr>
</thead>
<tbody>
<tr class="crop" ng-repeat="harvest in self.cfarm().harvests[self.cdate]">
<td width="1">
<img ng-src="{{harvest.crop.get_image()}}">
</td>
<td>{{harvest.crop.name}}</td>
<td>
<span ng-show="harvest.yield.min==harvest.yield.max">x{{harvest.yield.min}}</span>
<span ng-show="harvest.yield.min!=harvest.yield.max">
x{{harvest.yield.min}}
<i class="fa fa-fw fa-sort-amount-asc fa-rotate-270 compare"></i>
x{{harvest.yield.max}}
</span>
</td>
<td>
<span ng-show="harvest.revenue.min==harvest.revenue.max">+{{harvest.get_revenue(1)}}g</span>
<span ng-show="harvest.revenue.min!=harvest.revenue.max">
{{harvest.get_revenue(1)}}g
<i class="fa fa-fw fa-sort-amount-asc fa-rotate-270 compare"></i>
{{harvest.get_revenue(1, 1)}}g
</span>
</td>
<td>
<span ng-show="harvest.profit.min==harvest.profit.max">+{{harvest.get_profit(1)}}g</span>
<span ng-show="harvest.profit.min!=harvest.profit.max">
{{harvest.get_profit(1)}}g
<i class="fa fa-fw fa-sort-amount-asc fa-rotate-270 compare"></i>
{{harvest.get_profit(1, 1)}}g
</span>
</td>
<td>{{harvest.crop.regrow && harvest.crop.regrow+' days' || ''}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div ng-show="!self.cfarm().harvests[self.cdate].length" class="text-muted"><i class="fa fa-pagelines"></i> No harvests.</div>
</div>
<div class="modal-footer">
<div class="btn btn-default" data-dismiss="modal"><i class="fa fa-check"></i> Done</div>
</div>
</div>
</div>
</div>
<!-- [/CROP_PLANNER_MODAL] -->
<!-- [LICENSE] -->
<div class="license">
<a href="http://stardewvalley.net/" target="_blank" rel="noreferrer">Stardew Valley</a> (v1.1) © <a href="https://twitter.com/ConcernedApe" target="_blank" rel="noreferrer">ConcernedApe</a>. Unofficial <a href="https://github.com/exnil/crop_planner" target="_blank" rel="noreferrer">crop planner source code</a> made available under the MIT License.
<br>
<a href="https://github.com/exnil/crop_planner" target="_blank" rel="noreferrer" title="GitHub Page"><i class="fa fa-github fa-lg"></i></a>
 
<a href="https://www.reddit.com/r/StardewValley/comments/55puw1/crop_planner_v2_released_multiple_years_importing/" target="_blank" rel="noreferrer" title="Reddit Thread"><i class="fa fa-reddit-alien fa-lg"></i></a>
</div>
<!-- [/LICENSE] -->
</body>
</html>