Back to Frontend

PressR2.Scala

admin/app/views/pressR2.scala.html

latest1.1 KB
Original Source

@(urlMsgs: List[String] = List.empty, fileMsgs: List[String] = List.empty)(implicit request: RequestHeader, context: model.ApplicationContext) @import conf.switches.Switches.R2PagePressServiceSwitch @admin_main("R2 page presser (archiver)", isAuthed = true) {

Press (archive) an individual page

Note, as the code for R2 is not running anymore, re-pressing is only possible for pages that we already have a static copy of - i.e. pages that have already been pressed.

R2 URL:

Takedown:

Make HTTPS compatible:

@if(R2PagePressServiceSwitch.isSwitchedOn) { } else { This feature is currently switched off (use the switchboard to re-enable it) }

@if(urlMsgs.nonEmpty) {

@urlMsgs.mkString

} Press a batch of pages from a file of urls

Note, as the code for R2 is not running anymore, re-pressing is only possible for pages that we already have a static copy of - i.e. pages that have already been pressed.

File:

Takedown:

Make HTTPS compatible:

@if(R2PagePressServiceSwitch.isSwitchedOn) { } else { This feature is currently switched off (use the switchboard to re-enable it) }

@if(fileMsgs.nonEmpty) {

@fileMsgs.mkString

} }