Add extra views (tabs) for files in a foreign repository
authorThis, that and the other <at.light@live.com.au>
Mon, 7 Apr 2014 10:00:11 +0000 (20:00 +1000)
committerThis, that and the other <at.light@live.com.au>
Mon, 7 Apr 2014 10:00:11 +0000 (20:00 +1000)
commitfc613e6360b31933a2a027e81b7075f5cd867d8b
tree94cbcc6e4bd3e7f8b8e8c1ffd585ff77a932e1d7
parentf699a6c9d5cd86acbf289dc868f9cb0d81037199
Add extra views (tabs) for files in a foreign repository

Previously, foreign files with no local page had only a [Create] tab, with
no explanation that this created a local description page. There was not
even a [Read] tab - from SkinTemplate's perspective, a foreign file page
did not exist.

This patch changes the following view tabs:
* [Read] now always appears on foreign files - no change in functionality
* New tab [View on <repo name>] always appears on foreign files
* [Create] tab renamed to [Add local description] for foreign files without
  a local page
* [Edit] tab renamed to [Edit local description] for foreign files with a
  local page

This is related to bug 26525. I am hesitant to implement a [Edit on
<repo name>] tab that goes straight to the edit screen, as I worry about
users getting confused and thinking they are editing the file locally.

Change-Id: I4a43b759b7a7e9ac2c8d437408847bf3b6c1f4a9
includes/SkinTemplate.php
languages/i18n/en.json
languages/i18n/qqq.json