예제 #1
0
					<?php 
        echo \Components\Projects\Helpers\Html::shortenFileName($item->getName(), 60);
        ?>
				</a>
			<?php 
    }
    ?>
		</td>
		<td class="shrinked"></td>
		<td class="shrinked"><?php 
    echo $item->isFile() ? $item->getSize() : '';
    ?>
</td>
		<td class="shrinked">
			<?php 
    echo $item->getTimestamp() ? \Components\Projects\Helpers\Html::formatTime(Date::of($item->getTimestamp())->toSql()) : 'N/A';
    ?>
		</td>
		<td class="shrinked">
			<?php 
    echo $item->getOwner() == User::get('id') ? Lang::txt('PLG_PROJECTS_FILES_ME') : User::getRoot()->getInstance($item->getOwner())->get('name');
    ?>
		</td>
		<td class="shrinked nojs">
			<?php 
    if ($this->model->access('content')) {
        ?>
				<a href="<?php 
        echo Route::url($this->model->link('files') . '&action=delete' . $subdirPath . '&asset=' . urlencode($item->getName()));
        ?>
" title="<?php 
예제 #2
0
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 */
// No direct access
defined('_HZEXEC_') or die;
$me = $this->item->get('email') == User::get('email') || $this->item->get('author') == User::get('name') ? 1 : 0;
$when = $this->item->get('date') ? \Components\Projects\Helpers\Html::formatTime($this->item->get('date')) : 'N/A';
$subdirPath = $this->subdir ? '&subdir=' . urlencode($this->subdir) : '';
// Do not display Google native extension
$name = $this->item->get('name');
if ($this->item->get('remote')) {
    $native = \Components\Projects\Helpers\Google::getGoogleNativeExts();
    if (in_array($this->item->get('ext'), $native)) {
        $name = preg_replace("/." . $this->item->get('ext') . "\\z/", "", $this->item->get('name'));
    }
}
$ext = $this->item->get('type') == 'file' ? $this->item->get('ext') : 'folder';
?>
<tr class="mini faded mline">
	<?php 
if ($this->model->access('content')) {
    ?>
예제 #3
0
						<?php 
        if ($dirname != '.') {
            ?>
						<span class="faded block ipadded">
							<span class="icon-folder"></span>
							<?php 
            echo $dirname;
            ?>
</span>
						<?php 
        }
        ?>
					</td>
					<td class="faded">
						<?php 
        echo \Components\Projects\Helpers\Html::formatTime($file['date'], true, true);
        ?>
						<span class="block"><?php 
        echo $file['author'];
        ?>
</span>
					</td>
					<td><a href="<?php 
        echo Route::url($this->url . '&action=restore&asset=' . urlencode($filename) . '&hash=' . $file['hash']);
        ?>
"><?php 
        echo Lang::txt('PLG_PROJECTS_FILES_RESTORE');
        ?>
</a></td>
				</tr>
			<?php 
예제 #4
0
            echo 'class="' . $trclass . '"';
        }
        ?>
>
					<?php 
        if ($allowDiff) {
            ?>
					<td><?php 
            echo '@' . $v;
            ?>
</td>
					<?php 
        }
        ?>
					<td class="commit-actor"><span class="prominent"><?php 
        echo \Components\Projects\Helpers\Html::formatTime($version['date'], true);
        ?>
</span>
						<span class="block"><?php 
        echo $version['author'] ? $version['author'] : $version['email'];
        ?>
</span>
					</td>
					<?php 
        if ($allowDiff) {
            ?>
					<td class="diffing">
						<?php 
            if (!$version['remote'] && count($this->versions) > 1) {
                ?>
						<input type="radio" value="<?php