Skip to content

Commit 040df4b

Browse files
authored
Добавить кнопку экспорта расписания (#2017)
1 parent 0c8a9ae commit 040df4b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/JoinRpg.Portal/Controllers/Schedule/ShowScheduleController.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ public async Task<ActionResult> Index(int projectId)
5454

5555
//TODO we ignore acces rights here
5656
[HttpGet("ical")]
57-
[HttpGet("ical.ics")]
5857
public async Task<ActionResult> Ical(int projectId)
5958
{
6059
var schedule = await Manager.GetIcalSchedule();

src/JoinRpg.Portal/Views/ShowSchedule/Index.cshtml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
@Html.ActionLink("Открыть во весь экран", "FullScreen", "ShowSchedule", new { projectId = Model.ProjectId }, new { @class = "btn btn-default" })
1010

11+
<br />
12+
<div class="alert alert-info">
13+
Чтобы добавить расписание мероприятий в свой календарь, обратитесь к @Html.HelpLink("schedule/add_to_calendar.html", "инструкции"). <br />
14+
@Html.ActionLink("Ссылка для копирования", "Ical", "ShowSchedule", new { projectId = Model.ProjectId })
15+
</div>
16+
17+
1118
<section class="scheduler-container">
1219
@await Html.PartialAsync("Scheduler", Model)
1320
</section>

0 commit comments

Comments
 (0)